]> git.lizzy.rs Git - rust.git/blob - tests/ui/extern/extern-prelude-core.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / extern / extern-prelude-core.rs
1 // run-pass
2 #![feature(lang_items, start)]
3 #![no_std]
4
5 extern crate std as other;
6
7 mod foo {
8     pub fn test() {
9         let x = core::cmp::min(2, 3);
10         assert_eq!(x, 2);
11     }
12 }
13
14 #[start]
15 fn start(_argc: isize, _argv: *const *const u8) -> isize {
16     foo::test();
17     0
18 }