rust/tests/ui/auto-traits/issue-23080-2.rs
2023-12-14 15:22:37 +01:00

17 lines
263 B
Rust

// revisions: current next
//[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(());
}