1
Fork 0

Only allow ~const bounds for traits with #[const_trait]

This commit is contained in:
Oli Scherer 2022-10-03 17:08:42 +00:00
parent d9f8b4b985
commit 33bcea8f61
34 changed files with 192 additions and 83 deletions

View file

@ -2,6 +2,7 @@
#![feature(const_trait_impl)]
#[const_trait]
trait Foo {
fn bar() where Self: ~const Foo;
}