File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -221,16 +221,16 @@ paths are rvalues.
221221
222222``` rust
223223mod 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 ;
226226}
227227let local_var = 3 ;
228228local_var ;
229229globals :: STATIC_VAR ;
230230unsafe { globals :: STATIC_MUT_VAR };
231- let some_constructor = Option :: <i32 >:: Some ;
231+ let some_constructor = Option :: Some :: <i32 >;
232232let push_integer = Vec :: <i32 >:: push ;
233- let slice_eq = <[i32 ]>:: eq ;
233+ let slice_reverse = <[i32 ]>:: reverse ;
234234```
235235
236236## Tuple expressions
@@ -404,7 +404,7 @@ following order:
404404Note: that in steps 1-4 the receiver is used, not the type of ` Self ` , which may
405405not be the same as ` A ` . For example
406406
407- ``` rust
407+ ``` rust,ignore
408408// `Self` is `&A`, receiver is `&A`.
409409impl<'a> Trait for &'a A {
410410 fn method(self) {}
You can’t perform that action at this time.
0 commit comments