Skip to content

Commit 3e3a421

Browse files
varkoryodaldevoid
andcommitted
Update test fallout
Co-Authored-By: Gabriel Smith <[email protected]>
1 parent 4c18ee4 commit 3e3a421

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

src/test/ui/derives/deriving-with-repr-packed.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: #[derive] can't be used on a #[repr(packed)] struct with type parameters (error E0133)
1+
error: #[derive] can't be used on a #[repr(packed)] struct with type or const parameters (error E0133)
22
--> $DIR/deriving-with-repr-packed.rs:8:16
33
|
44
LL | #[derive(Copy, Clone, PartialEq, Eq)]
@@ -12,7 +12,7 @@ LL | #![deny(safe_packed_borrows)]
1212
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
1313
= note: for more information, see issue #46043 <https://github.com/rust-lang/rust/issues/46043>
1414

15-
error: #[derive] can't be used on a #[repr(packed)] struct with type parameters (error E0133)
15+
error: #[derive] can't be used on a #[repr(packed)] struct with type or const parameters (error E0133)
1616
--> $DIR/deriving-with-repr-packed.rs:8:23
1717
|
1818
LL | #[derive(Copy, Clone, PartialEq, Eq)]
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
fn foo<const X: ()>() {} //~ ERROR const generics are unstable
2-
//~^ const generics in any position are currently unsupported
32

43
struct Foo<const X: usize>([(); X]); //~ ERROR const generics are unstable
5-
//~^ const generics in any position are currently unsupported
64

75
fn main() {}

src/test/ui/feature-gates/feature-gate-const_generics.stderr

+2-14
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,13 @@ LL | fn foo<const X: ()>() {} //~ ERROR const generics are unstable
77
= help: add #![feature(const_generics)] to the crate attributes to enable
88

99
error[E0658]: const generics are unstable (see issue #44580)
10-
--> $DIR/feature-gate-const_generics.rs:4:18
10+
--> $DIR/feature-gate-const_generics.rs:3:18
1111
|
1212
LL | struct Foo<const X: usize>([(); X]); //~ ERROR const generics are unstable
1313
| ^
1414
|
1515
= help: add #![feature(const_generics)] to the crate attributes to enable
1616

17-
error: const generics in any position are currently unsupported
18-
--> $DIR/feature-gate-const_generics.rs:1:14
19-
|
20-
LL | fn foo<const X: ()>() {} //~ ERROR const generics are unstable
21-
| ^
22-
23-
error: const generics in any position are currently unsupported
24-
--> $DIR/feature-gate-const_generics.rs:4:18
25-
|
26-
LL | struct Foo<const X: usize>([(); X]); //~ ERROR const generics are unstable
27-
| ^
28-
29-
error: aborting due to 4 previous errors
17+
error: aborting due to 2 previous errors
3018

3119
For more information about this error, try `rustc --explain E0658`.

0 commit comments

Comments
 (0)