We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3d4b38 commit ee4b03fCopy full SHA for ee4b03f
tests/test/mod.rs
@@ -316,6 +316,7 @@ mod negation;
316
mod projection;
317
mod refs;
318
mod scalars;
319
+mod slices;
320
mod tuples;
321
mod unify;
322
mod wf_goals;
tests/test/slices.rs
@@ -0,0 +1,31 @@
1
+use super::*;
2
+
3
+#[test]
4
+fn slices_are_not_sized() {
5
+ test! {
6
+ program {
7
+ #[lang(sized)]
8
+ trait Sized { }
9
+ }
10
11
+ goal {
12
+ forall<T> { not { [T]: Sized } }
13
+ } yields {
14
+ "Unique; substitution [], lifetime constraints []"
15
16
17
+}
18
19
20
+fn slices_are_well_formed() {
21
22
23
24
25
26
+ forall<T> { WellFormed([T]) }
27
28
29
30
31
0 commit comments