]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-custom_mir.rs
Rollup merge of #107306 - compiler-errors:correct-sugg-for-closure-arg-needs-borrow...
[rust.git] / tests / ui / feature-gates / feature-gate-custom_mir.rs
1 #![feature(core_intrinsics)]
2
3 extern crate core;
4
5 #[custom_mir(dialect = "built")] //~ ERROR the `#[custom_mir]` attribute is just used for the Rust test suite
6 pub fn foo(_x: i32) -> i32 {
7     0
8 }
9
10 fn main() {
11     assert_eq!(2, foo(2));
12 }