2023-06-02 19:21:56 +00:00
|
|
|
//@ revisions: current next
|
2024-03-11 01:18:41 +00:00
|
|
|
//@ ignore-compare-mode-next-solver (explicit revisions)
|
2023-12-14 12:11:28 +00:00
|
|
|
//@[next] compile-flags: -Znext-solver
|
2023-06-02 19:21:56 +00:00
|
|
|
|
2020-11-23 03:54:31 +00:00
|
|
|
#![feature(auto_traits)]
|
2020-01-09 10:56:38 +00:00
|
|
|
#![feature(negative_impls)]
|
2015-03-06 17:14:38 +00:00
|
|
|
|
2017-12-03 12:56:53 +00:00
|
|
|
unsafe auto trait Trait {
|
2020-03-06 18:55:21 +00:00
|
|
|
type Output; //~ ERROR E0380
|
2015-03-06 17:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
fn call_method<T: Trait>(x: T) {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// ICE
|
|
|
|
call_method(());
|
|
|
|
}
|