aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/additional-trait-bounds2.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/rust/compile/additional-trait-bounds2.rs')
-rw-r--r--gcc/testsuite/rust/compile/additional-trait-bounds2.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/additional-trait-bounds2.rs b/gcc/testsuite/rust/compile/additional-trait-bounds2.rs
new file mode 100644
index 0000000..1c49b75
--- /dev/null
+++ b/gcc/testsuite/rust/compile/additional-trait-bounds2.rs
@@ -0,0 +1,9 @@
+#![feature(optin_builtin_traits)]
+
+pub unsafe auto trait Send {}
+#[lang = "sync"]
+pub unsafe auto trait Sync {}
+
+trait A {}
+
+impl dyn A + Send + Sync + NonExist {} // { dg-error "could not resolve type path .NonExist." }