Skip to content

Commit aec611c

Browse files
committed
wow
1 parent 7e952ec commit aec611c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/const-generics/defaults/default-param-wf-concrete.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0080]: evaluation of constant value failed
2-
--> $DIR/default-param-wf-concrete.rs:3:28
2+
--> $DIR/default-param-wf-concrete.rs:2:28
33
|
44
LL | struct Foo<const N: u8 = { 255 + 1 }>;
55
| ^^^^^^^ attempt to compute `u8::MAX + 1_u8`, which would overflow

src/test/ui/const-generics/min_const_generics/default_function_param.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: defaults for const parameters are only allowed in `struct`, `enum`, `type`, or `trait` definitions
2-
--> $DIR/default_function_param.rs:5:14
2+
--> $DIR/default_function_param.rs:4:14
33
|
44
LL | fn foo<const SIZE: usize = 5usize>() {}
55
| ^^^^

0 commit comments

Comments
 (0)