rust/src/test/run-pass/no-core-2.rs

19 lines
243 B
Rust
Raw Normal View History

2019-03-27 07:08:47 +00:00
#![allow(dead_code, unused_imports)]
#![feature(no_core)]
#![no_core]
// edition:2018
extern crate std;
extern crate core;
use core::{prelude::v1::*, *};
fn foo() {
for _ in &[()] {}
}
fn bar() -> Option<()> {
None?
}
fn main() {}