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

20 lines
262 B
Rust

// 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(());
}