diff options
Diffstat (limited to 'tests/ui/stability-attribute/accidental-stable-in-unstable.rs')
-rw-r--r-- | tests/ui/stability-attribute/accidental-stable-in-unstable.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/stability-attribute/accidental-stable-in-unstable.rs b/tests/ui/stability-attribute/accidental-stable-in-unstable.rs new file mode 100644 index 000000000..f8bbe90cf --- /dev/null +++ b/tests/ui/stability-attribute/accidental-stable-in-unstable.rs @@ -0,0 +1,10 @@ +#![crate_type = "lib"] +extern crate core; + +// Known accidental stabilizations with no known users, slated for un-stabilization +// fully stable @ core::char::UNICODE_VERSION +use core::unicode::UNICODE_VERSION; //~ ERROR use of unstable library feature 'unicode_internals' + +// Known accidental stabilizations with known users +// fully stable @ core::mem::transmute +use core::intrinsics::transmute; // depended upon by rand_core |