mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
16 lines
206 B
Rust
16 lines
206 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();
|
|
}
|