summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0199.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0199.rs')
-rw-r--r--tests/ui/error-codes/E0199.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0199.rs b/tests/ui/error-codes/E0199.rs
new file mode 100644
index 000000000..2421bf0a5
--- /dev/null
+++ b/tests/ui/error-codes/E0199.rs
@@ -0,0 +1,9 @@
+#![feature(negative_impls)]
+
+struct Foo;
+
+trait Bar { }
+unsafe impl Bar for Foo { } //~ ERROR implementing the trait `Bar` is not unsafe [E0199]
+
+fn main() {
+}