]>
Commit | Line | Data |
---|---|---|
fe692bf9 | 1 | error[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 | | |
4 | LL | 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 | 9 | error: aborting due to 1 previous error |
1b1a35ee XL |
10 | |
11 | For more information about this error, try `rustc --explain E0741`. |