mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
update tests
This commit is contained in:
parent
3f9015b22d
commit
21edd10dc5
@ -1,8 +1,10 @@
|
|||||||
error: constant expression depends on a generic parameter
|
error: overly complex generic constant
|
||||||
--> $DIR/let-bindings.rs:6:68
|
--> $DIR/let-bindings.rs:6:68
|
||||||
|
|
|
|
||||||
LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
|
LL | fn test<const N: usize>() -> [u8; { let x = N; N + 1 }] where [u8; { let x = N; N + 1 }]: Default {
|
||||||
| ^^^^^^^^^^^^^^^^^^^^ required by this bound in `test`
|
| ^^^^^^-^^^^^^^^^^^^^
|
||||||
|
| |
|
||||||
|
| unsupported statement
|
||||||
|
|
|
|
||||||
= help: consider moving this anonymous constant into a `const` function
|
= help: consider moving this anonymous constant into a `const` function
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ error: constant expression depends on a generic parameter
|
|||||||
--> $DIR/issue-76595.rs:15:5
|
--> $DIR/issue-76595.rs:15:5
|
||||||
|
|
|
|
||||||
LL | fn test<T, const P: usize>() where Bool<{core::mem::size_of::<T>() > 4}>: True {
|
LL | fn test<T, const P: usize>() where Bool<{core::mem::size_of::<T>() > 4}>: True {
|
||||||
| ---- required by this bound in `test`
|
| ------------------------------- required by this bound in `test`
|
||||||
...
|
...
|
||||||
LL | test::<2>();
|
LL | test::<2>();
|
||||||
| ^^^^^^^^^
|
| ^^^^^^^^^
|
||||||
|
Loading…
Reference in New Issue
Block a user