summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0199.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/error-codes/E0199.stderr')
-rw-r--r--tests/ui/error-codes/E0199.stderr15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/error-codes/E0199.stderr b/tests/ui/error-codes/E0199.stderr
new file mode 100644
index 000000000..68c308b15
--- /dev/null
+++ b/tests/ui/error-codes/E0199.stderr
@@ -0,0 +1,15 @@
+error[E0199]: implementing the trait `Bar` is not unsafe
+ --> $DIR/E0199.rs:6:1
+ |
+LL | unsafe impl Bar for Foo { }
+ | ^^^^^^^^^^^^^^^^^^^^^^^
+ |
+help: remove `unsafe` from this trait implementation
+ |
+LL - unsafe impl Bar for Foo { }
+LL + impl Bar for Foo { }
+ |
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0199`.