diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-04-18 21:19:50 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-04-18 21:20:11 +0200 |
| commit | 8f9a32aaf844174b26d7a39839c19c8f1c8d8cd0 (patch) | |
| tree | a35977706d25d00f0103ab994f610d840dd2260d /tests/run/exit_code.rs | |
| parent | 22d3c0d70a023f3f1641b4b70e4b48949dcface3 (diff) | |
| download | rust-8f9a32aaf844174b26d7a39839c19c8f1c8d8cd0.tar.gz rust-8f9a32aaf844174b26d7a39839c19c8f1c8d8cd0.zip | |
Merge commit 'db1a31c243a649e1fe20f5466ba181da5be35c14' into subtree-update_cg_gcc_2025-04-18
Diffstat (limited to 'tests/run/exit_code.rs')
| -rw-r--r-- | tests/run/exit_code.rs | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/tests/run/exit_code.rs b/tests/run/exit_code.rs index c50d2b0d710..376824da845 100644 --- a/tests/run/exit_code.rs +++ b/tests/run/exit_code.rs @@ -3,37 +3,13 @@ // Run-time: // status: 1 -#![feature(auto_traits, lang_items, no_core)] -#![allow(internal_features)] - +#![feature(no_core)] #![no_std] #![no_core] #![no_main] -/* - * Core - */ - -// Because we don't have core yet. -#[lang = "sized"] -pub trait Sized {} - -#[lang = "copy"] -trait Copy { -} - -impl Copy for isize {} - -#[lang = "receiver"] -trait Receiver { -} - -#[lang = "freeze"] -pub(crate) unsafe auto trait Freeze {} - -/* - * Code - */ +extern crate mini_core; +use mini_core::*; #[no_mangle] extern "C" fn main(argc: i32, _argv: *const *const u8) -> i32 { |
