File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -221,16 +221,16 @@ paths are rvalues.
221
221
222
222
``` rust
223
223
mod globals {
224
- static STATIC_VAR : i32 = 5 ;
225
- static mut STATIC_MUT_VAR : i32 = 7 ;
224
+ pub static STATIC_VAR : i32 = 5 ;
225
+ pub static mut STATIC_MUT_VAR : i32 = 7 ;
226
226
}
227
227
let local_var = 3 ;
228
228
local_var ;
229
229
globals :: STATIC_VAR ;
230
230
unsafe { globals :: STATIC_MUT_VAR };
231
- let some_constructor = Option :: <i32 >:: Some ;
231
+ let some_constructor = Option :: Some :: <i32 >;
232
232
let push_integer = Vec :: <i32 >:: push ;
233
- let slice_eq = <[i32 ]>:: eq ;
233
+ let slice_reverse = <[i32 ]>:: reverse ;
234
234
```
235
235
236
236
## Tuple expressions
@@ -404,7 +404,7 @@ following order:
404
404
Note: that in steps 1-4 the receiver is used, not the type of ` Self ` , which may
405
405
not be the same as ` A ` . For example
406
406
407
- ``` rust
407
+ ``` rust,ignore
408
408
// `Self` is `&A`, receiver is `&A`.
409
409
impl<'a> Trait for &'a A {
410
410
fn method(self) {}
You can’t perform that action at this time.
0 commit comments