Automatically taint when reporting errors from ItemCtxt
This commit is contained in:
parent
cd3d98b3be
commit
fd9a92542c
26 changed files with 183 additions and 374 deletions
|
@ -16,7 +16,6 @@ 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<{
|
||||
|
@ -37,10 +36,8 @@ fn main() {
|
|||
|
||||
let _fail = Example::<external_macro!()>;
|
||||
//~^ 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