Skip to content

Commit 2c6fd72

Browse files
committed
Add regression test for looking for trait defid in nocore
1 parent dac2509 commit 2c6fd72

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/ui/defid_nocore.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// ignore-windows
2+
// ignore-macos
3+
4+
#![feature(no_core, lang_items, start)]
5+
#![no_core]
6+
7+
#[link(name = "c")]
8+
extern "C" {}
9+
10+
#[lang = "sized"]
11+
pub trait Sized {}
12+
#[lang = "copy"]
13+
pub trait Copy {}
14+
#[lang = "freeze"]
15+
pub unsafe trait Freeze {}
16+
17+
#[lang = "start"]
18+
#[start]
19+
fn start(_argc: isize, _argv: *const *const u8) -> isize {
20+
0
21+
}

0 commit comments

Comments
 (0)