rust/tests/ui/async-await/pin-sugar-no-const.rs
2024-10-07 11:15:04 -07:00

9 lines
212 B
Rust

#![feature(pin_ergonomics)]
#![allow(incomplete_features)]
// Makes sure we don't accidentally accept `&pin Foo` without the `const` keyword.
fn main() {
let _x: &pin i32 = todo!(); //~ ERROR found `i32`
}