11error: a `const` item with interior mutability should not be borrowed
2- --> $DIR/borrow_interior_mutable_const.rs:65 :5
2+ --> $DIR/borrow_interior_mutable_const.rs:66 :5
33 |
44LL | ATOMIC.store(1, Ordering::SeqCst); //~ ERROR interior mutability
55 | ^^^^^^
@@ -8,119 +8,119 @@ 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/borrow_interior_mutable_const.rs:66 :16
11+ --> $DIR/borrow_interior_mutable_const.rs:67 :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/borrow_interior_mutable_const.rs:69 :22
19+ --> $DIR/borrow_interior_mutable_const.rs:70 :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/borrow_interior_mutable_const.rs:70 :25
27+ --> $DIR/borrow_interior_mutable_const.rs:71 :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/borrow_interior_mutable_const.rs:71 :27
35+ --> $DIR/borrow_interior_mutable_const.rs:72 :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/borrow_interior_mutable_const.rs:72 :26
43+ --> $DIR/borrow_interior_mutable_const.rs:73 :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/borrow_interior_mutable_const.rs:83 :14
51+ --> $DIR/borrow_interior_mutable_const.rs:84 :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/borrow_interior_mutable_const.rs:84 :14
59+ --> $DIR/borrow_interior_mutable_const.rs:85 :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/borrow_interior_mutable_const.rs:85 :19
67+ --> $DIR/borrow_interior_mutable_const.rs:86 :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/borrow_interior_mutable_const.rs:86 :14
75+ --> $DIR/borrow_interior_mutable_const.rs:87 :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/borrow_interior_mutable_const.rs:87 :13
83+ --> $DIR/borrow_interior_mutable_const.rs:88 :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/borrow_interior_mutable_const.rs:93 :13
91+ --> $DIR/borrow_interior_mutable_const.rs:94 :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/borrow_interior_mutable_const.rs:98 :5
99+ --> $DIR/borrow_interior_mutable_const.rs:99 :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/borrow_interior_mutable_const.rs:99 :16
107+ --> $DIR/borrow_interior_mutable_const.rs:100 :16
108108 |
109109LL | assert_eq!(CELL.get(), 6); //~ ERROR interior mutability
110110 | ^^^^
111111 |
112112 = help: assign this const to a local or static variable, and use the variable here
113113
114114error: a `const` item with interior mutability should not be borrowed
115- --> $DIR/borrow_interior_mutable_const.rs:112 :5
115+ --> $DIR/borrow_interior_mutable_const.rs:113 :5
116116 |
117117LL | u64::ATOMIC.store(5, Ordering::SeqCst); //~ ERROR interior mutability
118118 | ^^^^^^^^^^^
119119 |
120120 = help: assign this const to a local or static variable, and use the variable here
121121
122122error: a `const` item with interior mutability should not be borrowed
123- --> $DIR/borrow_interior_mutable_const.rs:113 :16
123+ --> $DIR/borrow_interior_mutable_const.rs:114 :16
124124 |
125125LL | assert_eq!(u64::ATOMIC.load(Ordering::SeqCst), 9); //~ ERROR interior mutability
126126 | ^^^^^^^^^^^
0 commit comments