Rollup merge of #23275 - aochagavia:constants, r=eddyb
Fixes #23260 r? @eddyb
This commit is contained in:
commit
cc6ef80fa4
4 changed files with 90 additions and 39 deletions
|
|
@ -19,7 +19,7 @@ fn main() {
|
|||
//~| found `()`
|
||||
//~| expected usize
|
||||
//~| found ()
|
||||
//~| ERROR expected constant integer for repeat count, found non-constant expression
|
||||
//~| ERROR expected positive integer for repeat count, found tuple
|
||||
let c = [0; true];
|
||||
//~^ ERROR mismatched types
|
||||
//~| expected `usize`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue