Skip rustfmt as it is wanted for this test
This commit is contained in:
parent
ce98468158
commit
f83762b79c
5 changed files with 14 additions and 21 deletions
|
|
@ -38,6 +38,7 @@ fn main() {
|
|||
let b = *aref;
|
||||
}
|
||||
|
||||
#[rustfmt::skip]
|
||||
macro_rules! m {
|
||||
($visitor: expr) => {
|
||||
$visitor
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ fn main() {
|
|||
let b = **&aref;
|
||||
}
|
||||
|
||||
#[rustfmt::skip]
|
||||
macro_rules! m {
|
||||
($visitor: expr) => {
|
||||
*& $visitor
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ LL | let b = **&aref;
|
|||
| ^^^^^^ help: try this: `aref`
|
||||
|
||||
error: immediately dereferencing a reference
|
||||
--> $DIR/deref_addrof.rs:43:9
|
||||
--> $DIR/deref_addrof.rs:44:9
|
||||
|
|
||||
LL | *& $visitor
|
||||
| ^^^^^^^^^^^ help: try this: `$visitor`
|
||||
|
|
@ -60,7 +60,7 @@ LL | m!(self)
|
|||
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: immediately dereferencing a reference
|
||||
--> $DIR/deref_addrof.rs:50:9
|
||||
--> $DIR/deref_addrof.rs:51:9
|
||||
|
|
||||
LL | *& mut $visitor
|
||||
| ^^^^^^^^^^^^^^^ help: try this: `$visitor`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue