mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
20 lines
258 B
Rust
20 lines
258 B
Rust
//@ run-pass
|
|
|
|
#![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() {}
|