1
Fork 0

may not => cannot

This commit is contained in:
Michael Goulet 2023-03-07 23:55:51 +00:00
parent 1a521db67e
commit a439c0293c
38 changed files with 54 additions and 54 deletions

View file

@ -1,4 +1,4 @@
error[E0184]: the trait `Copy` may not be implemented for this type; the type has a destructor
error[E0184]: the trait `Copy` cannot be implemented for this type; the type has a destructor
--> $DIR/E0184.rs:1:10
|
LL | #[derive(Copy)]

View file

@ -2,7 +2,7 @@
struct Bar;
impl Copy for &'static mut Bar { }
//~^ ERROR the trait `Copy` may not be implemented for this type
//~^ ERROR the trait `Copy` cannot be implemented for this type
fn main() {
}

View file

@ -1,4 +1,4 @@
error[E0206]: the trait `Copy` may not be implemented for this type
error[E0206]: the trait `Copy` cannot be implemented for this type
--> $DIR/E0206.rs:4:15
|
LL | impl Copy for &'static mut Bar { }