default_trait_param

This commit is contained in:
Ethan Brierley 2020-11-11 22:49:09 +00:00
parent ad7f330f52
commit 1d3f9d030b
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#![feature(min_const_generics)]
trait Foo<const KIND: bool = true> {}
//~^ ERROR expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `=`
fn main() {}

View File

@ -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