summary refs log tree commit diff
path: root/src/test/ui/issues/issue-23080.rs
blob: e25a2d916f5f2908281ffa722f6ef8d29aae0a8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// ignore-tidy-linelength

#![feature(optin_builtin_traits)]

unsafe auto trait Trait {
//~^ ERROR E0380
    fn method(&self) {
        println!("Hello");
    }
}

fn call_method<T: Trait>(x: T) {
    x.method();
}

fn main() {
    // ICE
    call_method(());
}