2018-12-25 09:56:47 -06:00
|
|
|
//~^^ ERROR
|
2018-04-22 16:48:38 -05:00
|
|
|
|
2015-03-06 11:14:38 -06:00
|
|
|
#![feature(optin_builtin_traits)]
|
|
|
|
|
2017-12-03 06:56:53 -06:00
|
|
|
unsafe auto trait Trait {
|
2016-08-18 14:46:20 -05:00
|
|
|
//~^ ERROR E0380
|
2015-03-06 11:14:38 -06:00
|
|
|
type Output;
|
|
|
|
}
|
|
|
|
|
|
|
|
fn call_method<T: Trait>(x: T) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// ICE
|
|
|
|
call_method(());
|
|
|
|
}
|