summary refs log tree commit diff
path: root/tests/ui/async-await/pin-sugar-ambiguity.rs
blob: d183000931ec19874fb840702a37bcdee3843fb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ 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;
}