Only allow ~const bounds for traits with #[const_trait]
This commit is contained in:
parent
d9f8b4b985
commit
33bcea8f61
34 changed files with 192 additions and 83 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#![feature(const_trait_impl)]
|
||||
|
||||
#[const_trait]
|
||||
trait Foo {
|
||||
fn bar() where Self: ~const Foo;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue