We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ac5dd commit 000d5aeCopy full SHA for 000d5ae
tests/ui/no_std/no-core-with-explicit-std-core.rs
@@ -1,11 +1,17 @@
1
+//! Test that you can use `#![no_core]` and still import std and core manually.
2
+//!
3
+//! The `#![no_core]` attribute disables the automatic core prelude, but you should
4
+//! still be able to explicitly import both `std` and `core` crates and use types
5
+//! like `Option` normally.
6
+
7
//@ run-pass
8
9
#![allow(stable_features)]
10
#![feature(no_core, core)]
11
#![no_core]
12
-extern crate std;
13
extern crate core;
14
+extern crate std;
15
16
use std::option::Option::Some;
17
0 commit comments