1 error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
2 --> $DIR/const_fn_trait_bound.rs:8:16
4 LL | const fn test1<T: std::ops::Add>() {}
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
10 error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
11 --> $DIR/const_fn_trait_bound.rs:10:16
13 LL | const fn test2(_x: &dyn Send) {}
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
19 error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
20 --> $DIR/const_fn_trait_bound.rs:12:21
22 LL | const fn test3() -> &'static dyn Send { loop {} }
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
28 error: aborting due to 3 previous errors
30 For more information about this error, try `rustc --explain E0658`.