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

15 lines
189 B
Rust
Raw Normal View History

2019-04-22 11:35:37 -05:00
//~ ERROR
2018-04-22 16:48:38 -05:00
#![feature(optin_builtin_traits)]
unsafe auto trait Trait {
type Output; //~ ERROR E0380
}
fn call_method<T: Trait>(x: T) {}
fn main() {
// ICE
call_method(());
}