blob: 7f6b9e3fba79fc1703d571295d205bb1aa4d86af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//~ ERROR
#![feature(optin_builtin_traits)]
#![feature(negative_impls)]
unsafe auto trait Trait {
type Output; //~ ERROR E0380
}
fn call_method<T: Trait>(x: T) {}
fn main() {
// ICE
call_method(());
}
|