@@ -50,20 +50,32 @@ LL | let b = **&aref;
5050 | ^^^^^^ help: try: `aref`
5151
5252error: immediately dereferencing a reference
53- --> tests/ui/deref_addrof.rs:53:17
53+ --> tests/ui/deref_addrof.rs:48:19
54+ |
55+ LL | let _repeat = *&[0; 64];
56+ | ^^^^^^^^^ help: try: `[0; 64]`
57+
58+ error: immediately dereferencing a reference
59+ --> tests/ui/deref_addrof.rs:49:16
60+ |
61+ LL | let _arr = *&[0, 1, 2, 3, 4];
62+ | ^^^^^^^^^^^^^^^^^ help: try: `[0, 1, 2, 3, 4]`
63+
64+ error: immediately dereferencing a reference
65+ --> tests/ui/deref_addrof.rs:57:17
5466 |
5567LL | inline!(*& $(@expr self))
5668 | ^^^^^^^^^^^^^^^^ help: try: `$(@expr self)`
5769 |
5870 = note: this error originates in the macro `__inline_mac_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
5971
6072error: immediately dereferencing a reference
61- --> tests/ui/deref_addrof.rs:57 :17
73+ --> tests/ui/deref_addrof.rs:61 :17
6274 |
6375LL | inline!(*&mut $(@expr self))
6476 | ^^^^^^^^^^^^^^^^^^^ help: try: `$(@expr self)`
6577 |
6678 = note: this error originates in the macro `__inline_mac_impl` (in Nightly builds, run with -Z macro-backtrace for more info)
6779
68- error: aborting due to 10 previous errors
80+ error: aborting due to 12 previous errors
6981
0 commit comments