]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no-core-2.rs
Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27
[rust.git] / src / test / ui / no-core-2.rs
1 // run-pass
2
3 #![allow(dead_code, unused_imports)]
4 #![feature(no_core)]
5 #![no_core]
6 // edition:2018
7
8 extern crate std;
9 extern crate core;
10 use core::{prelude::v1::*, *};
11
12 fn foo() {
13     for _ in &[()] {}
14 }
15
16 fn bar() -> Option<()> {
17     None?
18 }
19
20 fn main() {}