]>
Commit | Line | Data |
---|---|---|
cdc7bbd5 XL |
1 | error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable |
2 | --> $DIR/const_fn_trait_bound.rs:8:16 | |
3 | | | |
4 | LL | const fn test1<T: std::ops::Add>() {} | |
5 | | ^ | |
6 | | | |
5099ac24 | 7 | = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information |
cdc7bbd5 XL |
8 | = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable |
9 | ||
c295e0f8 | 10 | error[E0658]: trait objects in const fn are unstable |
cdc7bbd5 XL |
11 | --> $DIR/const_fn_trait_bound.rs:10:16 |
12 | | | |
13 | LL | const fn test2(_x: &dyn Send) {} | |
14 | | ^^ | |
15 | | | |
5099ac24 | 16 | = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information |
cdc7bbd5 XL |
17 | = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable |
18 | ||
c295e0f8 | 19 | error[E0658]: trait objects in const fn are unstable |
cdc7bbd5 XL |
20 | --> $DIR/const_fn_trait_bound.rs:12:21 |
21 | | | |
22 | LL | const fn test3() -> &'static dyn Send { loop {} } | |
23 | | ^^^^^^^^^^^^^^^^^ | |
24 | | | |
5099ac24 | 25 | = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information |
cdc7bbd5 XL |
26 | = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable |
27 | ||
28 | error: aborting due to 3 previous errors | |
29 | ||
30 | For more information about this error, try `rustc --explain E0658`. |