mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
9 lines
212 B
Rust
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`
|
|
}
|