default_trait_param
This commit is contained in:
parent
ad7f330f52
commit
1d3f9d030b
2 changed files with 14 additions and 0 deletions
|
@ -0,0 +1,6 @@
|
||||||
|
#![feature(min_const_generics)]
|
||||||
|
|
||||||
|
trait Foo<const KIND: bool = true> {}
|
||||||
|
//~^ ERROR expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `=`
|
||||||
|
|
||||||
|
fn main() {}
|
|
@ -0,0 +1,8 @@
|
||||||
|
error: expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `=`
|
||||||
|
--> $DIR/default_trait_param.rs:3:28
|
||||||
|
|
|
||||||
|
LL | trait Foo<const KIND: bool = true> {}
|
||||||
|
| ^ expected one of 7 possible tokens
|
||||||
|
|
||||||
|
error: aborting due to previous error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue