Skip to content

Commit ed67768

Browse files
committed
test: demonstrate PredicateBoxExt requires Sized
This test should fail, and the next commit should make it pass.
1 parent 5bd6da7 commit ed67768

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/boxed.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,14 @@ where
115115
}
116116

117117
impl<P, Item> PredicateBoxExt<Item> for P where P: Predicate<Item> {}
118+
119+
#[cfg(test)]
120+
mod test {
121+
use crate::prelude::*;
122+
123+
#[test]
124+
fn unsized_boxed() {
125+
let p = predicate::always().boxed();
126+
p.eval("4");
127+
}
128+
}

0 commit comments

Comments
 (0)