Automatically taint InferCtxt when errors are emitted
This commit is contained in:
parent
5988078aa2
commit
86c8eae774
56 changed files with 614 additions and 583 deletions
|
@ -3,8 +3,10 @@
|
|||
fn example<const N: usize>() {}
|
||||
|
||||
fn other() {
|
||||
example::<[usize; 3]>();
|
||||
//~^ ERROR type provided when a const
|
||||
example::<[usize; 4+5]>();
|
||||
//~^ ERROR type provided when a const
|
||||
example::<[usize; 3]>();
|
||||
//~^ ERROR type provided when a const
|
||||
//~| ERROR type annotations needed
|
||||
example::<[usize; 4 + 5]>();
|
||||
//~^ ERROR type provided when a const
|
||||
//~| ERROR type annotations needed
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue