]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const_fn_trait_bound.stock.stderr
Auto merge of #83572 - pkubaj:patch-1, r=nagisa
[rust.git] / src / test / ui / consts / const_fn_trait_bound.stock.stderr
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    |
7    = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
8    = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
9
10 error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
11   --> $DIR/const_fn_trait_bound.rs:10:16
12    |
13 LL | const fn test2(_x: &dyn Send) {}
14    |                ^^
15    |
16    = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
17    = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
18
19 error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
20   --> $DIR/const_fn_trait_bound.rs:12:21
21    |
22 LL | const fn test3() -> &'static dyn Send { loop {} }
23    |                     ^^^^^^^^^^^^^^^^^
24    |
25    = note: see issue #57563 <https://github.com/rust-lang/rust/issues/57563> for more information
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`.