Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Mar 27, 2019
1 parent c5fb4d0 commit d59b46f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/test/run-pass/no-core-2.rs
@@ -0,0 +1,18 @@
#![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() {}

0 comments on commit d59b46f

Please sign in to comment.