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 7585475 commit 27e5d20Copy full SHA for 27e5d20
tests/test/string.rs
@@ -24,9 +24,31 @@ fn str_is_well_formed() {
24
fn str_is_not_sized() {
25
test! {
26
program {
27
- #[lang(sized)] trait Sized { }
+ #[lang(sized)] trait Sized {}
28
}
29
30
goal { not { str: Sized } } yields { "Unique" }
31
32
33
+
34
+#[test]
35
+fn str_is_not_copy() {
36
+ test! {
37
+ program {
38
+ #[lang(copy)] trait Copy {}
39
+ }
40
41
+ goal { not { str: Copy } } yields { "Unique" }
42
43
+}
44
45
46
+fn str_is_not_clone() {
47
48
49
+ #[lang(clone)] trait Clone {}
50
51
52
+ goal { not { str: Clone } } yields { "Unique" }
53
54
0 commit comments