Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
default_trait_param
  • Loading branch information
eopb committed Nov 11, 2020
commit 1d3f9d030bcde5e3e5dec3ed4787996a13bf01a6
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