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

16 lines
281 B
Rust

//@ check-pass
#![feature(pin_ergonomics)]
#![allow(dead_code, incomplete_features)]
// Handle the case where there's ambiguity between pin as a contextual keyword and pin as a path.
struct Foo;
mod pin {
pub struct Foo;
}
fn main() {
let _x: &pin ::Foo = &pin::Foo;
}