]> git.proxmox.com Git - rustc.git/blame - src/test/ui/consts/const_fn_trait_bound.stock.stderr
Update (un)suspicious files
[rustc.git] / src / test / ui / consts / const_fn_trait_bound.stock.stderr
CommitLineData
cdc7bbd5
XL
1error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
2 --> $DIR/const_fn_trait_bound.rs:8:16
3 |
4LL | 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 10error[E0658]: trait objects in const fn are unstable
cdc7bbd5
XL
11 --> $DIR/const_fn_trait_bound.rs:10:16
12 |
13LL | 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 19error[E0658]: trait objects in const fn are unstable
cdc7bbd5
XL
20 --> $DIR/const_fn_trait_bound.rs:12:21
21 |
22LL | 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
28error: aborting due to 3 previous errors
29
30For more information about this error, try `rustc --explain E0658`.