about summary refs log tree commit diff
path: root/src/test/ui/compile-fail-migration/syntax-trait-polarity-feature-gate.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/compile-fail-migration/syntax-trait-polarity-feature-gate.stderr')
-rw-r--r--src/test/ui/compile-fail-migration/syntax-trait-polarity-feature-gate.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/compile-fail-migration/syntax-trait-polarity-feature-gate.stderr b/src/test/ui/compile-fail-migration/syntax-trait-polarity-feature-gate.stderr
new file mode 100644
index 00000000000..eebd018b887
--- /dev/null
+++ b/src/test/ui/compile-fail-migration/syntax-trait-polarity-feature-gate.stderr
@@ -0,0 +1,11 @@
+error[E0658]: negative trait bounds are not yet fully implemented; use marker types for now (see issue #13231)
+  --> $DIR/syntax-trait-polarity-feature-gate.rs:17:1
+   |
+LL | impl !Send for TestType {}
+   | ^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
+   = help: add #![feature(optin_builtin_traits)] to the crate attributes to enable
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0658`.