rust/src/test/ui/issues/issue-23080-2.rs
2018-12-25 21:08:33 -07:00

18 lines
219 B
Rust

// ignore-tidy-linelength
//~^^ 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(());
}