1
Fork 0

Bless expected errors

This commit is contained in:
Ethan Brierley 2020-10-12 22:27:59 +01:00
parent facb38d1dc
commit 79351b1d4a
54 changed files with 132 additions and 132 deletions

View file

@ -7,19 +7,19 @@ fn ok<const M: usize>() -> [u8; M] {
}
struct Break0<const N: usize>([u8; { N + 1 }]);
//~^ ERROR generic parameters must not be used inside const evaluations
//~^ ERROR generic parameters may not be used in const operations
struct Break1<const N: usize>([u8; { { N } }]);
//~^ ERROR generic parameters must not be used inside const evaluations
//~^ ERROR generic parameters may not be used in const operations
fn break2<const N: usize>() {
let _: [u8; N + 1];
//~^ ERROR generic parameters must not be used inside const evaluations
//~^ ERROR generic parameters may not be used in const operations
}
fn break3<const N: usize>() {
let _ = [0; N + 1];
//~^ ERROR generic parameters must not be used inside const evaluations
//~^ ERROR generic parameters may not be used in const operations
}
trait Foo {