rust/tests/ui/auto-traits/issue-23080-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
322 B
Rust
Raw Normal View History

//@ revisions: current next
//@ ignore-compare-mode-next-solver (explicit revisions)
2023-12-14 12:11:28 +00:00
//@[next] compile-flags: -Znext-solver
#![feature(auto_traits)]
#![feature(negative_impls)]
unsafe auto trait Trait {
type Output; //~ ERROR E0380
}
fn call_method<T: Trait>(x: T) {}
fn main() {
// ICE
call_method(());
}