fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
465 B11 linesraw
1error: generic parameters may not be used in const operations
2  --> $DIR/param-in-ct-in-ty-param-default.rs:1:44
3   |
4LL | struct Foo<T, U = [u8; std::mem::size_of::<T>()]>(T, U);
5   |                                            ^ cannot perform const operation using `T`
6   |
7   = note: type parameters may not be used in const expressions
8   = help: use `#![feature(generic_const_exprs)]` to allow generic const expressions
9
10error: aborting due to previous error
11