Skip to content

Commit dfeddd9

Browse files
committed
Use feature(const_fn_trait_bound) instead of feature(const_fn)
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable --> examples/const_fn_test/tests/test.rs:11:6 | 11 | impl<T: IntoIterator> A<T> { | ^ | = note: see issue #57563 <rust-lang/rust#57563> for more information = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable
1 parent 68a1101 commit dfeddd9

File tree

1 file changed

+1
-1
lines changed
  • examples/const_fn_test/tests

1 file changed

+1
-1
lines changed

examples/const_fn_test/tests/test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![cfg_attr(nightly, feature(const_fn))]
1+
#![cfg_attr(nightly, feature(const_fn_trait_bound))]
22
#![warn(rust_2018_idioms, single_use_lifetimes)]
33
#![allow(dead_code)]
44

0 commit comments

Comments
 (0)