rust/tests/ui/async-await/pin-sugar-no-const.rs

9 lines
212 B
Rust
Raw Normal View History

2024-09-20 14:09:18 -05:00
#![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`
}