2023-06-02 14:21:56 -05:00
|
|
|
// revisions: current next
|
|
|
|
//[next] compile-flags: -Ztrait-solver=next
|
|
|
|
|
2020-11-22 21:54:31 -06:00
|
|
|
#![feature(auto_traits)]
|
2020-01-09 04:56:38 -06:00
|
|
|
#![feature(negative_impls)]
|
2015-03-06 11:14:38 -06:00
|
|
|
|
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(());
|
|
|
|
}
|