blob: 4d713c524b335fc3542dd3b3933a69fa3ed107ba [file] [log] [blame]
#![feature(core_intrinsics)]
extern crate core;
use core::intrinsics::mir::*; //~ ERROR custom_mir
#[custom_mir(dialect = "built")] //~ ERROR the `#[custom_mir]` attribute is just used for the Rust test suite
pub fn foo(_x: i32) -> i32 {
mir! {
{
Return() //~ ERROR custom_mir
}
}
}
fn main() {
assert_eq!(2, foo(2));
}