1
Fork 0

bless tests

This commit is contained in:
Deadbeef 2023-08-06 13:20:55 +00:00
parent 92f4c59e48
commit 6c1e3bb6e9
42 changed files with 224 additions and 243 deletions

View file

@ -1,9 +1,11 @@
#![feature(const_trait_impl)]
// known-bug: #110395
#![feature(const_trait_impl, effects)]
pub trait A {}
//~^ HELP: mark `A` as const
// FIXME ~^ HELP: mark `A` as const
impl const A for () {}
//~^ ERROR: const `impl` for trait `A` which is not marked with `#[const_trait]`
// FIXME ~^ ERROR: const `impl` for trait `A` which is not marked with `#[const_trait]`
fn main() {}