mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
14 lines
197 B
Rust
14 lines
197 B
Rust
#![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(());
|
|
}
|