rust/src/test/ui/issues/issue-23080-2.rs

16 lines
192 B
Rust
Raw Normal View History

2018-12-25 09:56:47 -06:00
//~^^ ERROR
2018-04-22 16:48:38 -05:00
#![feature(optin_builtin_traits)]
unsafe auto trait Trait {
//~^ ERROR E0380
type Output;
}
fn call_method<T: Trait>(x: T) {}
fn main() {
// ICE
call_method(());
}