]> git.proxmox.com Git - rustc.git/blobdiff - src/tools/clippy/tests/ui/borrow_interior_mutable_const/traits.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / borrow_interior_mutable_const / traits.stderr
index 8f26403abd3ee0444c0f05a52e4cad2677f0b065..f34ae8814c335c379c36f4f034f15db858fc10dd 100644 (file)
@@ -4,8 +4,8 @@ error: a `const` item with interior mutability should not be borrowed
 LL |         let _ = &Self::ATOMIC; //~ ERROR interior mutable
    |                  ^^^^^^^^^^^^
    |
-   = note: `-D clippy::borrow-interior-mutable-const` implied by `-D warnings`
    = help: assign this const to a local or static variable, and use the variable here
+   = note: `-D clippy::borrow-interior-mutable-const` implied by `-D warnings`
 
 error: a `const` item with interior mutability should not be borrowed
   --> $DIR/traits.rs:26:18