]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/mem_discriminant.stderr
Rustup https://github.com/rust-lang/rust/pull/67359
[rust.git] / tests / ui / mem_discriminant.stderr
index 0420c82abda5e70d543982f634d781ee27f80963..8d9810970adee1bbe7d8301b15eec78c6d36f6ee 100644 (file)
@@ -6,7 +6,7 @@ LL |     mem::discriminant(&&Some(2));
    |                       |
    |                       help: try dereferencing: `&Some(2)`
    |
-note: lint level defined here
+note: the lint level is defined here
   --> $DIR/mem_discriminant.rs:3:9
    |
 LL | #![deny(clippy::mem_discriminant_non_enum)]
@@ -71,6 +71,8 @@ LL |     mem_discriminant_but_in_a_macro!(&rro);
    |     |                                |
    |     |                                help: try dereferencing: `*rro`
    |     in this macro invocation
+   |
+   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
 
 error: calling `mem::discriminant` on non-enum type `&&&&&std::option::Option<i32>`
   --> $DIR/mem_discriminant.rs:34:5