summary refs log tree commit diff
path: root/src/test/ui/issues/issue-23080-2.rs
blob: 319aa2a5cce9eb50ce24795ab30b3fca2a0c9c23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//~ ERROR

#![feature(optin_builtin_traits)]

unsafe auto trait Trait {
//~^ ERROR E0380
    type Output;
}

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

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