]> git.proxmox.com Git - rustc.git/blame - tests/ui/const-generics/issues/issue-63322-forbid-dyn.full.stderr
New upstream version 1.76.0+dfsg1
[rustc.git] / tests / ui / const-generics / issues / issue-63322-forbid-dyn.full.stderr
CommitLineData
fe692bf9 1error[E0741]: `&'static (dyn A + 'static)` can't be used as a const parameter type
5869c6ff 2 --> $DIR/issue-63322-forbid-dyn.rs:9:18
1b1a35ee
XL
3 |
4LL | fn test<const T: &'static dyn A>() {
923072b8 5 | ^^^^^^^^^^^^^^
fe692bf9
FG
6 |
7 = note: `(dyn A + 'static)` must implement `ConstParamTy`, but it does not
1b1a35ee 8
4b012472 9error: aborting due to 1 previous error
1b1a35ee
XL
10
11For more information about this error, try `rustc --explain E0741`.