Fix tests
This commit is contained in:
parent
1b6d435cf3
commit
7a3211726b
@ -1,6 +1,7 @@
|
||||
//@ edition: 2021
|
||||
//@ compile-flags: -Zunstable-options
|
||||
#![feature(mut_preserve_binding_mode_2024)]
|
||||
#![allow(incomplete_features)]
|
||||
|
||||
struct Foo(u8);
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/mut_preserve_binding_mode_2021.rs:9:9
|
||||
--> $DIR/mut_preserve_binding_mode_2021.rs:10:9
|
||||
|
|
||||
LL | let Foo(mut a) = &Foo(0);
|
||||
| ----- expected due to the type of this binding
|
||||
@ -13,7 +13,7 @@ LL + a = 42;
|
||||
|
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/mut_preserve_binding_mode_2021.rs:13:9
|
||||
--> $DIR/mut_preserve_binding_mode_2021.rs:14:9
|
||||
|
|
||||
LL | let Foo(mut a) = &mut Foo(0);
|
||||
| ----- expected due to the type of this binding
|
||||
|
@ -2,7 +2,7 @@
|
||||
//@ edition: 2024
|
||||
//@ compile-flags: -Zunstable-options
|
||||
#![feature(mut_preserve_binding_mode_2024)]
|
||||
#![allow(unused)]
|
||||
#![allow(incomplete_features, unused)]
|
||||
|
||||
struct Foo(u8);
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
//@ edition: 2021
|
||||
#![feature(mut_preserve_binding_mode_2024)]
|
||||
#![allow(unused)]
|
||||
#![allow(incomplete_features, unused)]
|
||||
#![forbid(dereferencing_mut_binding)]
|
||||
|
||||
struct Foo(u8);
|
||||
|
Loading…
Reference in New Issue
Block a user