mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
19 lines
243 B
Rust
19 lines
243 B
Rust
|
#![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() {}
|