Skip to content

Commit 7a32117

Browse files
Fix tests
1 parent 1b6d435 commit 7a32117

4 files changed

+5
-4
lines changed

tests/ui/pattern/mut_preserve_binding_mode_2021.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//@ edition: 2021
22
//@ compile-flags: -Zunstable-options
33
#![feature(mut_preserve_binding_mode_2024)]
4+
#![allow(incomplete_features)]
45

56
struct Foo(u8);
67

tests/ui/pattern/mut_preserve_binding_mode_2021.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0308]: mismatched types
2-
--> $DIR/mut_preserve_binding_mode_2021.rs:9:9
2+
--> $DIR/mut_preserve_binding_mode_2021.rs:10:9
33
|
44
LL | let Foo(mut a) = &Foo(0);
55
| ----- expected due to the type of this binding
@@ -13,7 +13,7 @@ LL + a = 42;
1313
|
1414

1515
error[E0308]: mismatched types
16-
--> $DIR/mut_preserve_binding_mode_2021.rs:13:9
16+
--> $DIR/mut_preserve_binding_mode_2021.rs:14:9
1717
|
1818
LL | let Foo(mut a) = &mut Foo(0);
1919
| ----- expected due to the type of this binding

tests/ui/pattern/mut_preserve_binding_mode_2024.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//@ edition: 2024
33
//@ compile-flags: -Zunstable-options
44
#![feature(mut_preserve_binding_mode_2024)]
5-
#![allow(unused)]
5+
#![allow(incomplete_features, unused)]
66

77
struct Foo(u8);
88

tests/ui/pattern/mut_preserve_binding_mode_2024_lint.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ edition: 2021
22
#![feature(mut_preserve_binding_mode_2024)]
3-
#![allow(unused)]
3+
#![allow(incomplete_features, unused)]
44
#![forbid(dereferencing_mut_binding)]
55

66
struct Foo(u8);

0 commit comments

Comments
 (0)