about summary refs log tree commit diff
path: root/tests/ui/resolve/issue-111312.rs
blob: 574e9870cd2f790ee0bd8a1bc39f14c1176c2901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ edition: 2021

trait Has {
    fn has() {}
}

trait HasNot {}

fn main() {
    HasNot::has();
    //~^ ERROR expected a type, found a trait
}