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
|
@ -16,6 +16,7 @@ fn make_marker() -> impl Marker<gimme_a_const!(marker)> {
|
|||
//~| ERROR: type provided when a constant was expected
|
||||
Example::<gimme_a_const!(marker)>
|
||||
//~^ ERROR: type provided when a constant was expected
|
||||
//~| ERROR type annotations needed
|
||||
}
|
||||
|
||||
fn from_marker(_: impl Marker<{
|
||||
|
@ -35,9 +36,11 @@ fn main() {
|
|||
}>;
|
||||
|
||||
let _fail = Example::<external_macro!()>;
|
||||
//~^ ERROR: type provided when a constant was expected
|
||||
//~^ ERROR: type provided when a constant
|
||||
//~| ERROR type annotations needed
|
||||
|
||||
let _fail = Example::<gimme_a_const!()>;
|
||||
//~^ ERROR unexpected end of macro invocation
|
||||
//~| ERROR: type provided when a constant was expected
|
||||
//~| ERROR type annotations needed
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue