mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 22:41:50 +00:00
13 lines
239 B
Rust
13 lines
239 B
Rust
#![feature(core_intrinsics)]
|
|
|
|
extern crate core;
|
|
|
|
#[custom_mir(dialect = "built")] //~ ERROR the `#[custom_mir]` attribute is just used for the Rust test suite
|
|
pub fn foo(_x: i32) -> i32 {
|
|
0
|
|
}
|
|
|
|
fn main() {
|
|
assert_eq!(2, foo(2));
|
|
}
|