11error: a `const` item with interior mutability should not be borrowed
2- --> $DIR/others.rs:58 :5
2+ --> $DIR/others.rs:54 :5
33 |
44LL | ATOMIC.store(1, Ordering::SeqCst); //~ ERROR interior mutability
55 | ^^^^^^
@@ -8,103 +8,103 @@ LL | ATOMIC.store(1, Ordering::SeqCst); //~ ERROR interior mutability
88 = help: assign this const to a local or static variable, and use the variable here
99
1010error: a `const` item with interior mutability should not be borrowed
11- --> $DIR/others.rs:59 :16
11+ --> $DIR/others.rs:55 :16
1212 |
1313LL | assert_eq!(ATOMIC.load(Ordering::SeqCst), 5); //~ ERROR interior mutability
1414 | ^^^^^^
1515 |
1616 = help: assign this const to a local or static variable, and use the variable here
1717
1818error: a `const` item with interior mutability should not be borrowed
19- --> $DIR/others.rs:62 :22
19+ --> $DIR/others.rs:58 :22
2020 |
2121LL | let _once_ref = &ONCE_INIT; //~ ERROR interior mutability
2222 | ^^^^^^^^^
2323 |
2424 = help: assign this const to a local or static variable, and use the variable here
2525
2626error: a `const` item with interior mutability should not be borrowed
27- --> $DIR/others.rs:63 :25
27+ --> $DIR/others.rs:59 :25
2828 |
2929LL | let _once_ref_2 = &&ONCE_INIT; //~ ERROR interior mutability
3030 | ^^^^^^^^^
3131 |
3232 = help: assign this const to a local or static variable, and use the variable here
3333
3434error: a `const` item with interior mutability should not be borrowed
35- --> $DIR/others.rs:64 :27
35+ --> $DIR/others.rs:60 :27
3636 |
3737LL | let _once_ref_4 = &&&&ONCE_INIT; //~ ERROR interior mutability
3838 | ^^^^^^^^^
3939 |
4040 = help: assign this const to a local or static variable, and use the variable here
4141
4242error: a `const` item with interior mutability should not be borrowed
43- --> $DIR/others.rs:65 :26
43+ --> $DIR/others.rs:61 :26
4444 |
4545LL | let _once_mut = &mut ONCE_INIT; //~ ERROR interior mutability
4646 | ^^^^^^^^^
4747 |
4848 = help: assign this const to a local or static variable, and use the variable here
4949
5050error: a `const` item with interior mutability should not be borrowed
51- --> $DIR/others.rs:76 :14
51+ --> $DIR/others.rs:72 :14
5252 |
5353LL | let _ = &ATOMIC_TUPLE; //~ ERROR interior mutability
5454 | ^^^^^^^^^^^^
5555 |
5656 = help: assign this const to a local or static variable, and use the variable here
5757
5858error: a `const` item with interior mutability should not be borrowed
59- --> $DIR/others.rs:77 :14
59+ --> $DIR/others.rs:73 :14
6060 |
6161LL | let _ = &ATOMIC_TUPLE.0; //~ ERROR interior mutability
6262 | ^^^^^^^^^^^^
6363 |
6464 = help: assign this const to a local or static variable, and use the variable here
6565
6666error: a `const` item with interior mutability should not be borrowed
67- --> $DIR/others.rs:78 :19
67+ --> $DIR/others.rs:74 :19
6868 |
6969LL | let _ = &(&&&&ATOMIC_TUPLE).0; //~ ERROR interior mutability
7070 | ^^^^^^^^^^^^
7171 |
7272 = help: assign this const to a local or static variable, and use the variable here
7373
7474error: a `const` item with interior mutability should not be borrowed
75- --> $DIR/others.rs:79 :14
75+ --> $DIR/others.rs:75 :14
7676 |
7777LL | let _ = &ATOMIC_TUPLE.0[0]; //~ ERROR interior mutability
7878 | ^^^^^^^^^^^^
7979 |
8080 = help: assign this const to a local or static variable, and use the variable here
8181
8282error: a `const` item with interior mutability should not be borrowed
83- --> $DIR/others.rs:80 :13
83+ --> $DIR/others.rs:76 :13
8484 |
8585LL | let _ = ATOMIC_TUPLE.0[0].load(Ordering::SeqCst); //~ ERROR interior mutability
8686 | ^^^^^^^^^^^^
8787 |
8888 = help: assign this const to a local or static variable, and use the variable here
8989
9090error: a `const` item with interior mutability should not be borrowed
91- --> $DIR/others.rs:86 :13
91+ --> $DIR/others.rs:82 :13
9292 |
9393LL | let _ = ATOMIC_TUPLE.0[0]; //~ ERROR interior mutability
9494 | ^^^^^^^^^^^^
9595 |
9696 = help: assign this const to a local or static variable, and use the variable here
9797
9898error: a `const` item with interior mutability should not be borrowed
99- --> $DIR/others.rs:91 :5
99+ --> $DIR/others.rs:87 :5
100100 |
101101LL | CELL.set(2); //~ ERROR interior mutability
102102 | ^^^^
103103 |
104104 = help: assign this const to a local or static variable, and use the variable here
105105
106106error: a `const` item with interior mutability should not be borrowed
107- --> $DIR/others.rs:92 :16
107+ --> $DIR/others.rs:88 :16
108108 |
109109LL | assert_eq!(CELL.get(), 6); //~ ERROR interior mutability
110110 | ^^^^
0 commit comments