File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ environment:
8
8
install :
9
9
- curl -sSf -o rustup-init.exe https://win.rustup.rs
10
10
- rustup-init.exe --default-host %TARGET% --default-toolchain %CHANNEL% -y
11
- - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
11
+ - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin;C:\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
12
+ - gcc --version
12
13
- rustc -Vv
13
14
- cargo -V
14
15
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ impl S {
17
17
}
18
18
19
19
fn func ( arg : S ) {
20
- //~^ HELP make this binding mutable
21
- arg. mutate ( ) ; //~ ERROR cannot borrow immutable argument
22
- //~| NOTE cannot borrow mutably
20
+ //~^ HELP consider changing this to be mutable
21
+ arg. mutate ( ) ; //~ ERROR cannot borrow `arg` as mutable
22
+ //~| NOTE cannot borrow as mutable
23
23
}
24
24
25
25
fn main ( ) {
26
26
let local = S ;
27
- //~^ HELP make this binding mutable
28
- local. mutate ( ) ; //~ ERROR cannot borrow immutable local variable
29
- //~| NOTE cannot borrow mutably
27
+ //~^ HELP consider changing this to be mutable
28
+ local. mutate ( ) ; //~ ERROR cannot borrow ` local` as mutable
29
+ //~| NOTE cannot borrow as mutable
30
30
}
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ trait Foo {
13
13
fn dummy ( & self ) { }
14
14
}
15
15
16
- fn a ( _x : Box < Foo +Send > ) {
16
+ fn a ( _x : Box < dyn Foo +Send > ) {
17
17
}
18
18
19
- fn c ( x : Box < Foo +Sync +Send > ) {
19
+ fn c ( x : Box < dyn Foo +Sync +Send > ) {
20
20
a ( x) ;
21
21
}
22
22
23
- fn d ( x : Box < Foo > ) {
23
+ fn d ( x : Box < dyn Foo > ) {
24
24
a ( x) ; //~ ERROR mismatched types
25
25
//~| expected trait `Foo + std::marker::Send`, found trait `Foo`
26
26
//~| expected type `std::boxed::Box<(dyn Foo + std::marker::Send + 'static)>`
Original file line number Diff line number Diff line change 8
8
// pretty-mode:expanded
9
9
// pp-exact:macro.pp
10
10
11
- macro_rules! square(( $ x : expr ) => { $ x * $ x } ;);
11
+ macro_rules! square { ( $ x : expr) => { $ x * $ x } ; }
12
12
13
13
fn f() -> i8 { 5 * 5 }
You can’t perform that action at this time.
0 commit comments