We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a15157 commit 402644fCopy full SHA for 402644f
src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.rs
@@ -0,0 +1,6 @@
1
+// The trait must not be available if its feature flag is absent.
2
+
3
+#![crate_type = "lib"]
4
5
+use std::mem::BikeshedIntrinsicFrom;
6
+//~^ ERROR use of unstable library feature 'transmutability' [E0658]
src/test/ui/transmutability/malformed-program-gracefulness/feature-missing.stderr
@@ -0,0 +1,11 @@
+error[E0658]: use of unstable library feature 'transmutability'
+ --> $DIR/feature-missing.rs:5:5
+ |
+LL | use std::mem::BikeshedIntrinsicFrom;
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7
+ = help: add `#![feature(transmutability)]` to the crate attributes to enable
8
9
+error: aborting due to previous error
10
11
+For more information about this error, try `rustc --explain E0658`.
0 commit comments