rust/src/test/ui/no-core-1.rs
2019-07-27 18:56:16 +03:00

16 lines
205 B
Rust

// run-pass
#![allow(stable_features)]
#![feature(no_core, core)]
#![no_core]
extern crate std;
extern crate core;
use std::option::Option::Some;
fn main() {
let a = Some("foo");
a.unwrap();
}