mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 05:57:03 +03:00
11 lines
186 B
Rust
11 lines
186 B
Rust
#![feature(negative_impls)]
|
|
#![feature(specialization)]
|
|
|
|
trait MyTrait {
|
|
type Foo;
|
|
}
|
|
|
|
default impl !MyTrait for u32 {} //~ ERROR negative impls cannot be default impls
|
|
|
|
fn main() {}
|