Skip to content

Commit 1d3f9d0

Browse files
committed
default_trait_param
1 parent ad7f330 commit 1d3f9d0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#![feature(min_const_generics)]
2+
3+
trait Foo<const KIND: bool = true> {}
4+
//~^ ERROR expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `=`
5+
6+
fn main() {}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
error: expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `=`
2+
--> $DIR/default_trait_param.rs:3:28
3+
|
4+
LL | trait Foo<const KIND: bool = true> {}
5+
| ^ expected one of 7 possible tokens
6+
7+
error: aborting due to previous error
8+

0 commit comments

Comments
 (0)