mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
11 lines
300 B
Rust
11 lines
300 B
Rust
#![feature(negative_impls)]
|
|
//@ edition: 2021
|
|
// Test to ensure we are printing the polarity of the impl trait ref
|
|
// when printing out conflicting trait impls
|
|
|
|
struct MyType;
|
|
|
|
impl !Clone for &mut MyType {}
|
|
//~^ ERROR conflicting implementations of trait `Clone` for type `&mut MyType`
|
|
fn main() {}
|