Skip to content

Commit d59b46f

Browse files
committed
Add a test
1 parent c5fb4d0 commit d59b46f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

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

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#![allow(dead_code, unused_imports)]
2+
#![feature(no_core)]
3+
#![no_core]
4+
// edition:2018
5+
6+
extern crate std;
7+
extern crate core;
8+
use core::{prelude::v1::*, *};
9+
10+
fn foo() {
11+
for _ in &[()] {}
12+
}
13+
14+
fn bar() -> Option<()> {
15+
None?
16+
}
17+
18+
fn main() {}

0 commit comments

Comments
 (0)