fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
508 B14 linesraw
1error[E0599]: no associated item named `MIN` found for type `u8` in the current scope
2  --> $DIR/issue-22933-3.rs:1:22
3   |
4LL | const FOO: [u32; u8::MIN as usize] = [];
5   |                      ^^^ associated item not found in `u8`
6   |
7help: you are looking for the module in `std`, not the primitive type
8   |
9LL | const FOO: [u32; std::u8::MIN as usize] = [];
10   |                  ^^^^^^^^^^^^
11
12error: aborting due to previous error
13
14For more information about this error, try `rustc --explain E0599`.