2020-06-22 13:57:03 +01:00
|
|
|
warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
|
2020-07-16 17:52:23 +01:00
|
|
|
--> $DIR/functions.rs:2:12
|
2020-06-22 13:57:03 +01:00
|
|
|
|
|
2020-07-16 17:52:23 +01:00
|
|
|
LL | #![feature(const_generics, rustc_attrs)]
|
2020-06-22 13:57:03 +01:00
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
= note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
|
|
|
|
|
|
|
|
error: item has unused generic parameters
|
2020-07-16 17:52:23 +01:00
|
|
|
--> $DIR/functions.rs:14:8
|
2020-06-22 13:57:03 +01:00
|
|
|
|
|
|
|
|
LL | pub fn unused<const T: usize>() {
|
|
|
|
| ^^^^^^ - generic parameter `T` is unused
|
|
|
|
|
|
|
|
error: aborting due to previous error; 1 warning emitted
|
|
|
|
|