2019-04-22 11:35:37 -05: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 {
|
2020-03-06 12:55:21 -06:00
|
|
|
type Output; //~ ERROR E0380
|
2015-03-06 11:14:38 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn call_method<T: Trait>(x: T) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// ICE
|
|
|
|
call_method(());
|
|
|
|
}
|