summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/feature-gate-custom_mir.rs
blob: 0126dde2f7d4b7e0754e6ba98aa0241db8085b75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#![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));
}