]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generics/param-in-ct-in-ty-param-default.stderr
Auto merge of #87284 - Aaron1011:remove-paren-special, r=petrochenkov
[rust.git] / src / test / ui / generics / param-in-ct-in-ty-param-default.stderr
1 error: generic parameters may not be used in const operations
2   --> $DIR/param-in-ct-in-ty-param-default.rs:1:44
3    |
4 LL | 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(const_generics)]` and `#![feature(const_evaluatable_checked)]` to allow generic const expressions
9
10 error: aborting due to previous error
11