From 12173c3085127d97e44b217e49b5d6c862cfa6a7 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Mon, 26 Apr 2021 20:23:15 +0900 Subject: [PATCH] Use feature(const_fn_trait_bound) instead of feature(const_fn) error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable --> test_suite/tests/test.rs:105:30 | 105 | const fn const_generics4>, const C: usize>() -> S1 { | ^ | = note: see issue #57563 for more information = help: add `#![feature(const_fn_trait_bound)]` to the crate attributes to enable --- test_suite/tests/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_suite/tests/test.rs b/test_suite/tests/test.rs index cf0ae04..a2c20bb 100644 --- a/test_suite/tests/test.rs +++ b/test_suite/tests/test.rs @@ -1,4 +1,4 @@ -#![cfg_attr(const_unstable, feature(const_fn, const_extern_fn))] +#![cfg_attr(const_unstable, feature(const_extern_fn, const_fn_trait_bound))] #![warn(rust_2018_idioms, single_use_lifetimes)] #![allow(clippy::missing_safety_doc)] // this is test