Skip to content

Commit

Permalink
default_trait_param
Browse files Browse the repository at this point in the history
  • Loading branch information
eopb committed Nov 11, 2020
1 parent ad7f330 commit 1d3f9d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#![feature(min_const_generics)]

trait Foo<const KIND: bool = true> {}
//~^ ERROR expected one of `!`, `(`, `+`, `,`, `::`, `<`, or `>`, found `=`

fn main() {}
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1d3f9d0

Please sign in to comment.