1
Fork 0

fix one more case of trailing space

This commit is contained in:
klensy 2022-06-08 21:07:59 +03:00
parent 0ff8ae3111
commit 989d1a732f
105 changed files with 140 additions and 140 deletions

View file

@ -819,7 +819,7 @@ impl EmitterWriter {
} }
buffer.puts(line_offset, 0, &self.maybe_anonymized(line_index), Style::LineNumber); buffer.puts(line_offset, 0, &self.maybe_anonymized(line_index), Style::LineNumber);
draw_col_separator(buffer, line_offset, width_offset - 2); draw_col_separator_no_space(buffer, line_offset, width_offset - 2);
} }
fn render_source_line( fn render_source_line(

View file

@ -30,7 +30,7 @@ error[E0053]: method `make` has an incompatible type for trait
| |
LL | default type Ty = bool; LL | default type Ty = bool;
| ----------------------- expected this associated type | ----------------------- expected this associated type
LL | LL |
LL | fn make() -> bool { true } LL | fn make() -> bool { true }
| ^^^^ | ^^^^
| | | |
@ -50,7 +50,7 @@ error[E0308]: mismatched types
| |
LL | type Ty = u8; LL | type Ty = u8;
| ------------- associated type defaults can't be assumed inside the trait defining them | ------------- associated type defaults can't be assumed inside the trait defining them
LL | LL |
LL | fn make() -> Self::Ty { LL | fn make() -> Self::Ty {
| -------- expected `<Self as Tr>::Ty` because of return type | -------- expected `<Self as Tr>::Ty` because of return type
LL | 0u8 LL | 0u8
@ -77,7 +77,7 @@ error[E0308]: mismatched types
| |
LL | default type Ty = bool; LL | default type Ty = bool;
| ----------------------- expected this associated type | ----------------------- expected this associated type
LL | LL |
LL | fn make() -> Self::Ty { true } LL | fn make() -> Self::Ty { true }
| -------- ^^^^ expected associated type, found `bool` | -------- ^^^^ expected associated type, found `bool`
| | | |

View file

@ -5,7 +5,7 @@ LL | / trait Sub<Rhs=Self> {
LL | | type Output; LL | | type Output;
LL | | } LL | | }
| |_- type parameter `Rhs` must be specified for this | |_- type parameter `Rhs` must be specified for this
LL | LL |
LL | type Test = dyn Add + Sub; LL | type Test = dyn Add + Sub;
| ^^^ help: set the type parameter to the desired type: `Sub<Rhs>` | ^^^ help: set the type parameter to the desired type: `Sub<Rhs>`
| |

View file

@ -3,7 +3,7 @@ error[E0515]: cannot return value referencing local variable `s`
| |
LL | let b = &s[..]; LL | let b = &s[..];
| - `s` is borrowed here | - `s` is borrowed here
LL | LL |
LL | Err(b)?; LL | Err(b)?;
| ^^^^^^^ returns a value referencing data owned by the current function | ^^^^^^^ returns a value referencing data owned by the current function

View file

@ -3,7 +3,7 @@ error[E0255]: the name `foo` is defined multiple times
| |
LL | mod foo { pub mod foo { } } LL | mod foo { pub mod foo { } }
| ------- previous definition of the module `foo` here | ------- previous definition of the module `foo` here
LL | LL |
LL | use foo::foo; LL | use foo::foo;
| ^^^^^^^^ `foo` reimported here | ^^^^^^^^ `foo` reimported here
| |

View file

@ -3,10 +3,10 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
| |
LL | let y = &x; LL | let y = &x;
| -- immutable borrow occurs here | -- immutable borrow occurs here
LL | LL |
LL | let q = &raw mut x; LL | let q = &raw mut x;
| ^^^^^^^^^^ mutable borrow occurs here | ^^^^^^^^^^ mutable borrow occurs here
LL | LL |
LL | drop(y); LL | drop(y);
| - immutable borrow later used here | - immutable borrow later used here
@ -15,7 +15,7 @@ error[E0502]: cannot borrow `x` as immutable because it is also borrowed as muta
| |
LL | let y = &mut x; LL | let y = &mut x;
| ------ mutable borrow occurs here | ------ mutable borrow occurs here
LL | LL |
LL | let p = &raw const x; LL | let p = &raw const x;
| ^^^^^^^^^^^^ immutable borrow occurs here | ^^^^^^^^^^^^ immutable borrow occurs here
... ...
@ -30,7 +30,7 @@ LL | let y = &mut x;
... ...
LL | let q = &raw mut x; LL | let q = &raw mut x;
| ^^^^^^^^^^ second mutable borrow occurs here | ^^^^^^^^^^ second mutable borrow occurs here
LL | LL |
LL | drop(y); LL | drop(y);
| - first borrow later used here | - first borrow later used here

View file

@ -3,7 +3,7 @@ error[E0596]: cannot borrow `*x` as mutable, as it is behind a `&` reference
| |
LL | let x = &0; LL | let x = &0;
| -- help: consider changing this to be a mutable reference: `&mut 0` | -- help: consider changing this to be a mutable reference: `&mut 0`
LL | LL |
LL | let q = &raw mut *x; LL | let q = &raw mut *x;
| ^^^^^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be borrowed as mutable | ^^^^^^^^^^^ `x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
@ -12,7 +12,7 @@ error[E0596]: cannot borrow `*x` as mutable, as it is behind a `*const` pointer
| |
LL | let x = &0 as *const i32; LL | let x = &0 as *const i32;
| -- help: consider changing this to be a mutable pointer: `&mut 0` | -- help: consider changing this to be a mutable pointer: `&mut 0`
LL | LL |
LL | let q = &raw mut *x; LL | let q = &raw mut *x;
| ^^^^^^^^^^^ `x` is a `*const` pointer, so the data it refers to cannot be borrowed as mutable | ^^^^^^^^^^^ `x` is a `*const` pointer, so the data it refers to cannot be borrowed as mutable

View file

@ -5,7 +5,7 @@ LL | let r = &x.0;
| ---- borrow of `x.0` occurs here | ---- borrow of `x.0` occurs here
LL | let y = x; LL | let y = x;
| ^ move out of `x` occurs here | ^ move out of `x` occurs here
LL | LL |
LL | r.use_ref(); LL | r.use_ref();
| ----------- borrow later used here | ----------- borrow later used here

View file

@ -3,10 +3,10 @@ error[E0502]: cannot borrow `p` as mutable because it is also borrowed as immuta
| |
LL | let q: &isize = &p[0]; LL | let q: &isize = &p[0];
| - immutable borrow occurs here | - immutable borrow occurs here
LL | LL |
LL | p[0] = 5; LL | p[0] = 5;
| ^ mutable borrow occurs here | ^ mutable borrow occurs here
LL | LL |
LL | println!("{}", *q); LL | println!("{}", *q);
| -- immutable borrow later used here | -- immutable borrow later used here

View file

@ -3,7 +3,7 @@ error[E0503]: cannot use `p` because it was mutably borrowed
| |
LL | let q = &mut p; LL | let q = &mut p;
| ------ borrow of `p` occurs here | ------ borrow of `p` occurs here
LL | LL |
LL | p + 3; LL | p + 3;
| ^ use of borrowed `p` | ^ use of borrowed `p`
... ...
@ -18,7 +18,7 @@ LL | let q = &mut p;
... ...
LL | p.times(3); LL | p.times(3);
| ^^^^^^^^^^ immutable borrow occurs here | ^^^^^^^^^^ immutable borrow occurs here
LL | LL |
LL | *q + 3; // OK to use the new alias `q` LL | *q + 3; // OK to use the new alias `q`
| -- mutable borrow later used here | -- mutable borrow later used here

View file

@ -18,7 +18,7 @@ LL | let l = &mut p;
| ------ mutable borrow occurs here | ------ mutable borrow occurs here
LL | p.impurem(); LL | p.impurem();
| ^^^^^^^^^^^ immutable borrow occurs here | ^^^^^^^^^^^ immutable borrow occurs here
LL | LL |
LL | l.x += 1; LL | l.x += 1;
| -------- mutable borrow later used here | -------- mutable borrow later used here

View file

@ -3,7 +3,7 @@ error[E0505]: cannot move out of `*a` because it is borrowed
| |
LL | let b = &a; LL | let b = &a;
| -- borrow of `a` occurs here | -- borrow of `a` occurs here
LL | LL |
LL | let z = *a; LL | let z = *a;
| ^^ move out of `*a` occurs here | ^^ move out of `*a` occurs here
LL | b.use_ref(); LL | b.use_ref();

View file

@ -3,7 +3,7 @@ error[E0382]: use of moved value: `t`
| |
LL | let t: Box<_> = Box::new(3); LL | let t: Box<_> = Box::new(3);
| - move occurs because `t` has type `Box<isize>`, which does not implement the `Copy` trait | - move occurs because `t` has type `Box<isize>`, which does not implement the `Copy` trait
LL | LL |
LL | call_f(move|| { *t + 1 }); LL | call_f(move|| { *t + 1 });
| ------ -- variable moved due to use in closure | ------ -- variable moved due to use in closure
| | | |

View file

@ -3,7 +3,7 @@ error[E0505]: cannot move out of `s` because it is borrowed
| |
LL | let rs = &mut s; LL | let rs = &mut s;
| ------ borrow of `s` occurs here | ------ borrow of `s` occurs here
LL | LL |
LL | println!("{}", f[s]); LL | println!("{}", f[s]);
| ^ move out of `s` occurs here | ^ move out of `s` occurs here
... ...

View file

@ -23,7 +23,7 @@ error[E0502]: cannot borrow `s[..]` as mutable because it is also borrowed as im
| |
LL | let [.., _, ref from_end4, ref from_end3, _, ref from_end1] = *s; LL | let [.., _, ref from_end4, ref from_end3, _, ref from_end1] = *s;
| ------------- immutable borrow occurs here | ------------- immutable borrow occurs here
LL | LL |
LL | let [_, _, ref mut from_begin2, ..] = *s; LL | let [_, _, ref mut from_begin2, ..] = *s;
| ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here | ^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here
LL | nop(&[from_begin2, from_end1, from_end3, from_end4]); LL | nop(&[from_begin2, from_end1, from_end3, from_end4]);
@ -45,7 +45,7 @@ error[E0502]: cannot borrow `s[..]` as mutable because it is also borrowed as im
| |
LL | let [ref from_begin0, ref from_begin1, _, ref from_begin3, _, ..] = *s; LL | let [ref from_begin0, ref from_begin1, _, ref from_begin3, _, ..] = *s;
| --------------- immutable borrow occurs here | --------------- immutable borrow occurs here
LL | LL |
LL | let [.., ref mut from_end3, _, _] = *s; LL | let [.., ref mut from_end3, _, _] = *s;
| ^^^^^^^^^^^^^^^^^ mutable borrow occurs here | ^^^^^^^^^^^^^^^^^ mutable borrow occurs here
LL | nop(&[from_begin0, from_begin1, from_begin3, from_end3]); LL | nop(&[from_begin0, from_begin1, from_begin3, from_end3]);

View file

@ -99,7 +99,7 @@ LL | let ra = &mut u.a;
| -------- borrow of `u.a` occurs here | -------- borrow of `u.a` occurs here
LL | let b = u.b; LL | let b = u.b;
| ^^^ use of borrowed `u.a` | ^^^ use of borrowed `u.a`
LL | LL |
LL | drop(ra); LL | drop(ra);
| -- borrow later used here | -- borrow later used here

View file

@ -3,7 +3,7 @@ error[E0382]: borrow of moved value: `helpers`
| |
LL | let helpers = [vec![], vec![]]; LL | let helpers = [vec![], vec![]];
| ------- move occurs because `helpers` has type `[Vec<&i64>; 2]`, which does not implement the `Copy` trait | ------- move occurs because `helpers` has type `[Vec<&i64>; 2]`, which does not implement the `Copy` trait
LL | LL |
LL | HelperStruct { helpers, is_empty: helpers[0].is_empty() } LL | HelperStruct { helpers, is_empty: helpers[0].is_empty() }
| ------- ^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move | ------- ^^^^^^^^^^^^^^^^^^^^^ value borrowed here after move
| | | |

View file

@ -5,7 +5,7 @@ LL | let res = (|| (|| &greeting)())();
| -- -------- borrow occurs due to use in closure | -- -------- borrow occurs due to use in closure
| | | |
| borrow of `greeting` occurs here | borrow of `greeting` occurs here
LL | LL |
LL | greeting = "DEALLOCATED".to_string(); LL | greeting = "DEALLOCATED".to_string();
| ^^^^^^^^ assignment to borrowed `greeting` occurs here | ^^^^^^^^ assignment to borrowed `greeting` occurs here
... ...

View file

@ -3,7 +3,7 @@ error[E0503]: cannot use `i` because it was mutably borrowed
| |
LL | /*1*/ let p = &mut i; // (reservation of `i` starts here) LL | /*1*/ let p = &mut i; // (reservation of `i` starts here)
| ------ borrow of `i` occurs here | ------ borrow of `i` occurs here
LL | LL |
LL | /*2*/ let j = i; // OK: `i` is only reserved here LL | /*2*/ let j = i; // OK: `i` is only reserved here
| ^ use of borrowed `i` | ^ use of borrowed `i`
... ...

View file

@ -3,7 +3,7 @@ error[E0502]: cannot borrow `v` as mutable because it is also borrowed as immuta
| |
LL | let shared = &v; LL | let shared = &v;
| -- immutable borrow occurs here | -- immutable borrow occurs here
LL | LL |
LL | v.extend(shared); LL | v.extend(shared);
| ^^------^^^^^^^^ | ^^------^^^^^^^^
| | | | | |

View file

@ -5,7 +5,7 @@ LL | v[0].push_str({
| - -------- first borrow later used by call | - -------- first borrow later used by call
| | | |
| first mutable borrow occurs here | first mutable borrow occurs here
LL | LL |
LL | v.push(format!("foo")); LL | v.push(format!("foo"));
| ^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here | ^^^^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here

View file

@ -3,7 +3,7 @@ error[E0596]: cannot borrow `**ref_mref_x` as mutable, as it is behind a `&` ref
| |
LL | let ref_mref_x = &mref_x; LL | let ref_mref_x = &mref_x;
| ------- help: consider changing this to be a mutable reference: `&mut mref_x` | ------- help: consider changing this to be a mutable reference: `&mut mref_x`
LL | LL |
LL | let c = || { LL | let c = || {
| ^^ `ref_mref_x` is a `&` reference, so the data it refers to cannot be borrowed as mutable | ^^ `ref_mref_x` is a `&` reference, so the data it refers to cannot be borrowed as mutable
LL | LL |

View file

@ -5,7 +5,7 @@ LL | let sq = || { *x * *x };
| -- -- borrow occurs due to use in closure | -- -- borrow occurs due to use in closure
| | | |
| borrow of `x` occurs here | borrow of `x` occurs here
LL | LL |
LL | twice(x); LL | twice(x);
| ^ move out of `x` occurs here | ^ move out of `x` occurs here
LL | invoke(sq); LL | invoke(sq);

View file

@ -3,7 +3,7 @@ error[E0596]: cannot borrow `c` as mutable, as it is not declared as mutable
| |
LL | let c = |a, b, c, d| {}; LL | let c = |a, b, c, d| {};
| - help: consider changing this to be mutable: `mut c` | - help: consider changing this to be mutable: `mut c`
LL | LL |
LL | A.f(participant_name, &mut c); LL | A.f(participant_name, &mut c);
| ^^^^^^ cannot borrow as mutable | ^^^^^^ cannot borrow as mutable

View file

@ -3,7 +3,7 @@ error[E0751]: found both positive and negative implementation of trait `std::mar
| |
LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {} LL | unsafe impl<T: MyTrait + 'static> Send for TestType<T> {}
| ------------------------------------------------------ positive implementation here | ------------------------------------------------------ positive implementation here
LL | LL |
LL | impl<T: MyTrait> !Send for TestType<T> {} LL | impl<T: MyTrait> !Send for TestType<T> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ negative implementation here | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ negative implementation here

View file

@ -3,7 +3,7 @@ error: conflicting implementations of trait `Trait` for type `for<'a, 'b> fn(&'a
| |
LL | impl Trait for for<'a, 'b> fn(&'a &'b u32, &'b &'a u32) -> &'b u32 {} LL | impl Trait for for<'a, 'b> fn(&'a &'b u32, &'b &'a u32) -> &'b u32 {}
| ------------------------------------------------------------------ first implementation here | ------------------------------------------------------------------ first implementation here
LL | LL |
LL | impl Trait for for<'c> fn(&'c &'c u32, &'c &'c u32) -> &'c u32 { LL | impl Trait for for<'c> fn(&'c &'c u32, &'c &'c u32) -> &'c u32 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a &'b u32, &'b &'a u32) -> &'b u32` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a &'b u32, &'b &'a u32) -> &'b u32`
| |

View file

@ -3,7 +3,7 @@ error: conflicting implementations of trait `TheTrait` for type `fn(&u8)`
| |
LL | impl<'a> TheTrait for fn(&'a u8) {} LL | impl<'a> TheTrait for fn(&'a u8) {}
| -------------------------------- first implementation here | -------------------------------- first implementation here
LL | LL |
LL | impl TheTrait for fn(&u8) { LL | impl TheTrait for fn(&u8) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `fn(&u8)` | ^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `fn(&u8)`
| |

View file

@ -3,7 +3,7 @@ error[E0119]: conflicting implementations of trait `Foo<i32>` for type `i32`
| |
LL | impl Foo<i32> for i32 { } LL | impl Foo<i32> for i32 { }
| --------------------- first implementation here | --------------------- first implementation here
LL | LL |
LL | impl<A:Iterator> Foo<A::Item> for A { } LL | impl<A:Iterator> Foo<A::Item> for A { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`
| |

View file

@ -3,7 +3,7 @@ error[E0119]: conflicting implementations of trait `Foo<_>` for type `std::optio
| |
LL | impl <P, T: Foo<P>> Foo<P> for Option<T> {} LL | impl <P, T: Foo<P>> Foo<P> for Option<T> {}
| ---------------------------------------- first implementation here | ---------------------------------------- first implementation here
LL | LL |
LL | impl<T, U> Foo<T> for Option<U> { } LL | impl<T, U> Foo<T> for Option<U> { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `std::option::Option<_>` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `std::option::Option<_>`

View file

@ -3,7 +3,7 @@ error[E0119]: conflicting implementations of trait `Foo<i32>` for type `i32`
| |
LL | impl Foo<i32> for i32 { } LL | impl Foo<i32> for i32 { }
| --------------------- first implementation here | --------------------- first implementation here
LL | LL |
LL | impl<A:Bar> Foo<A::Output> for A { } LL | impl<A:Bar> Foo<A::Output> for A { }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `i32`

View file

@ -3,7 +3,7 @@ warning: conflicting implementations of trait `TheTrait` for type `for<'a, 'b> f
| |
LL | impl TheTrait for for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8 {} LL | impl TheTrait for for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8 {}
| ---------------------------------------------------------- first implementation here | ---------------------------------------------------------- first implementation here
LL | LL |
LL | impl TheTrait for for<'a> fn(&'a u8, &'a u8) -> &'a u8 { LL | impl TheTrait for for<'a> fn(&'a u8, &'a u8) -> &'a u8 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `for<'a, 'b> fn(&'a u8, &'b u8) -> &'a u8`
| |

View file

@ -23,7 +23,7 @@ error[E0599]: the method `use_eq` exists for struct `Object<NoDerives>`, but its
| |
LL | pub struct NoDerives; LL | pub struct NoDerives;
| --------------------- doesn't satisfy `NoDerives: Eq` | --------------------- doesn't satisfy `NoDerives: Eq`
LL | LL |
LL | struct Object<T>(T); LL | struct Object<T>(T);
| -------------------- method `use_eq` not found for this | -------------------- method `use_eq` not found for this
... ...
@ -42,7 +42,7 @@ error[E0599]: the method `use_ord` exists for struct `Object<NoDerives>`, but it
| |
LL | pub struct NoDerives; LL | pub struct NoDerives;
| --------------------- doesn't satisfy `NoDerives: Ord` | --------------------- doesn't satisfy `NoDerives: Ord`
LL | LL |
LL | struct Object<T>(T); LL | struct Object<T>(T);
| -------------------- method `use_ord` not found for this | -------------------- method `use_ord` not found for this
... ...
@ -64,7 +64,7 @@ LL | pub struct NoDerives;
| | | |
| doesn't satisfy `NoDerives: Ord` | doesn't satisfy `NoDerives: Ord`
| doesn't satisfy `NoDerives: PartialOrd` | doesn't satisfy `NoDerives: PartialOrd`
LL | LL |
LL | struct Object<T>(T); LL | struct Object<T>(T);
| -------------------- method `use_ord_and_partial_ord` not found for this | -------------------- method `use_ord_and_partial_ord` not found for this
... ...

View file

@ -3,7 +3,7 @@ error[E0255]: the name `foo` is defined multiple times
| |
LL | use bar::foo; LL | use bar::foo;
| -------- previous import of the value `foo` here | -------- previous import of the value `foo` here
LL | LL |
LL | fn foo() {} LL | fn foo() {}
| ^^^^^^^^ `foo` redefined here | ^^^^^^^^ `foo` redefined here
| |

View file

@ -3,7 +3,7 @@ error[E0259]: the name `alloc` is defined multiple times
| |
LL | extern crate alloc; LL | extern crate alloc;
| ------------------- previous import of the extern crate `alloc` here | ------------------- previous import of the extern crate `alloc` here
LL | LL |
LL | extern crate libc as alloc; LL | extern crate libc as alloc;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `alloc` reimported here | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ `alloc` reimported here
| |

View file

@ -3,7 +3,7 @@ error[E0260]: the name `alloc` is defined multiple times
| |
LL | extern crate alloc; LL | extern crate alloc;
| ------------------- previous import of the extern crate `alloc` here | ------------------- previous import of the extern crate `alloc` here
LL | LL |
LL | mod alloc { LL | mod alloc {
| ^^^^^^^^^ `alloc` redefined here | ^^^^^^^^^ `alloc` redefined here
| |

View file

@ -3,7 +3,7 @@ error[E0393]: the type parameter `T` must be explicitly specified
| |
LL | trait A<T=Self> {} LL | trait A<T=Self> {}
| ------------------ type parameter `T` must be specified for this | ------------------ type parameter `T` must be specified for this
LL | LL |
LL | fn together_we_will_rule_the_galaxy(son: &dyn A) {} LL | fn together_we_will_rule_the_galaxy(son: &dyn A) {}
| ^ help: set the type parameter to the desired type: `A<T>` | ^ help: set the type parameter to the desired type: `A<T>`
| |

View file

@ -31,7 +31,7 @@ error[E0423]: expected function, tuple struct or tuple variant, found struct `Fo
| |
LL | struct Foo { a: bool }; LL | struct Foo { a: bool };
| ---------------------- `Foo` defined here | ---------------------- `Foo` defined here
LL | LL |
LL | let f = Foo(); LL | let f = Foo();
| ^^^^^ | ^^^^^
... ...

View file

@ -3,7 +3,7 @@ error[E0446]: private type `Bar` in public interface
| |
LL | struct Bar(u32); LL | struct Bar(u32);
| ---------------- `Bar` declared as private | ---------------- `Bar` declared as private
LL | LL |
LL | pub fn bar() -> Bar { LL | pub fn bar() -> Bar {
| ^^^^^^^^^^^^^^^^^^^ can't leak private type | ^^^^^^^^^^^^^^^^^^^ can't leak private type

View file

@ -3,7 +3,7 @@ error[E0453]: allow(non_snake_case) incompatible with previous forbid
| |
LL | #![forbid(non_snake_case)] LL | #![forbid(non_snake_case)]
| -------------- `forbid` level set here | -------------- `forbid` level set here
LL | LL |
LL | #[allow(non_snake_case)] LL | #[allow(non_snake_case)]
| ^^^^^^^^^^^^^^ overruled by previous forbid | ^^^^^^^^^^^^^^ overruled by previous forbid
@ -12,7 +12,7 @@ error[E0453]: allow(non_snake_case) incompatible with previous forbid
| |
LL | #![forbid(non_snake_case)] LL | #![forbid(non_snake_case)]
| -------------- `forbid` level set here | -------------- `forbid` level set here
LL | LL |
LL | #[allow(non_snake_case)] LL | #[allow(non_snake_case)]
| ^^^^^^^^^^^^^^ overruled by previous forbid | ^^^^^^^^^^^^^^ overruled by previous forbid

View file

@ -3,7 +3,7 @@ error[E0505]: cannot move out of `fancy_num` because it is borrowed
| |
LL | let fancy_ref = &fancy_num; LL | let fancy_ref = &fancy_num;
| ---------- borrow of `fancy_num` occurs here | ---------- borrow of `fancy_num` occurs here
LL | LL |
LL | let x = move || { LL | let x = move || {
| ^^^^^^^ move out of `fancy_num` occurs here | ^^^^^^^ move out of `fancy_num` occurs here
LL | println!("child function: {}", fancy_num.num); LL | println!("child function: {}", fancy_num.num);

View file

@ -5,7 +5,7 @@ LL | let fancy_ref = &fancy_num;
| ---------- borrow of `fancy_num` occurs here | ---------- borrow of `fancy_num` occurs here
LL | fancy_num = FancyNum { num: 6 }; LL | fancy_num = FancyNum { num: 6 };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ assignment to borrowed `fancy_num` occurs here | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ assignment to borrowed `fancy_num` occurs here
LL | LL |
LL | println!("Num: {}, Ref: {}", fancy_num.num, fancy_ref.num); LL | println!("Num: {}, Ref: {}", fancy_num.num, fancy_ref.num);
| ------------- borrow later used here | ------------- borrow later used here

View file

@ -3,7 +3,7 @@ error[E0119]: conflicting implementations of trait `Foo` for type `&_`
| |
LL | impl<T: std::ops::DerefMut> Foo for T { } LL | impl<T: std::ops::DerefMut> Foo for T { }
| ------------------------------------- first implementation here | ------------------------------------- first implementation here
LL | LL |
LL | impl<T> Foo for &T { } LL | impl<T> Foo for &T { }
| ^^^^^^^^^^^^^^^^^^ conflicting implementation for `&_` | ^^^^^^^^^^^^^^^^^^ conflicting implementation for `&_`

View file

@ -93,7 +93,7 @@ error: invalid format string: expected `'}'` but string was terminated
| |
LL | { LL | {
| - because of this opening brace | - because of this opening brace
LL | LL |
LL | "###); LL | "###);
| ^ expected `'}'` in format string | ^ expected `'}'` in format string
| |

View file

@ -3,10 +3,10 @@ error[E0502]: cannot borrow `my_stuff` as mutable because it is also borrowed as
| |
LL | let (_, thing) = my_stuff.iter().next().unwrap(); LL | let (_, thing) = my_stuff.iter().next().unwrap();
| --------------- immutable borrow occurs here | --------------- immutable borrow occurs here
LL | LL |
LL | my_stuff.clear(); LL | my_stuff.clear();
| ^^^^^^^^^^^^^^^^ mutable borrow occurs here | ^^^^^^^^^^^^^^^^ mutable borrow occurs here
LL | LL |
LL | println!("{}", *thing); LL | println!("{}", *thing);
| ------ immutable borrow later used here | ------ immutable borrow later used here

View file

@ -3,7 +3,7 @@ error[E0720]: cannot resolve opaque type
| |
LL | fn id<T>(t: T) -> impl Sized { t } LL | fn id<T>(t: T) -> impl Sized { t }
| ---------- returning this opaque type `impl Sized` | ---------- returning this opaque type `impl Sized`
LL | LL |
LL | fn recursive_id() -> impl Sized { LL | fn recursive_id() -> impl Sized {
| ^^^^^^^^^^ recursive opaque type | ^^^^^^^^^^ recursive opaque type
LL | id(recursive_id2()) LL | id(recursive_id2())
@ -25,7 +25,7 @@ error[E0720]: cannot resolve opaque type
| |
LL | fn wrap<T>(t: T) -> impl Sized { (t,) } LL | fn wrap<T>(t: T) -> impl Sized { (t,) }
| ---------- returning this opaque type `impl Sized` | ---------- returning this opaque type `impl Sized`
LL | LL |
LL | fn recursive_wrap() -> impl Sized { LL | fn recursive_wrap() -> impl Sized {
| ^^^^^^^^^^ recursive opaque type | ^^^^^^^^^^ recursive opaque type
LL | wrap(recursive_wrap2()) LL | wrap(recursive_wrap2())

View file

@ -7,7 +7,7 @@ LL | let mut f = || v.push(2);
| borrow of `v` occurs here | borrow of `v` occurs here
LL | let _w = v; LL | let _w = v;
| ^ move out of `v` occurs here | ^ move out of `v` occurs here
LL | LL |
LL | f(); LL | f();
| - borrow later used here | - borrow later used here

View file

@ -3,7 +3,7 @@ error[E0393]: the type parameter `T` must be explicitly specified
| |
LL | trait A<T=Self> {} LL | trait A<T=Self> {}
| ------------------ type parameter `T` must be specified for this | ------------------ type parameter `T` must be specified for this
LL | LL |
LL | fn f(a: &dyn A) {} LL | fn f(a: &dyn A) {}
| ^ help: set the type parameter to the desired type: `A<T>` | ^ help: set the type parameter to the desired type: `A<T>`
| |

View file

@ -3,7 +3,7 @@ error[E0428]: the name `foo` is defined multiple times
| |
LL | fn foo(); LL | fn foo();
| --------- previous definition of the value `foo` here | --------- previous definition of the value `foo` here
LL | LL |
LL | / pub LL | / pub
LL | | fn foo(); LL | | fn foo();
| |___________^ `foo` redefined here | |___________^ `foo` redefined here

View file

@ -3,7 +3,7 @@ error[E0428]: the name `A` is defined multiple times
| |
LL | enum A { B, C } LL | enum A { B, C }
| ------ previous definition of the type `A` here | ------ previous definition of the type `A` here
LL | LL |
LL | enum A { D, E } LL | enum A { D, E }
| ^^^^^^ `A` redefined here | ^^^^^^ `A` redefined here
| |

View file

@ -3,7 +3,7 @@ error[E0428]: the name `a` is defined multiple times
| |
LL | pub mod a {} LL | pub mod a {}
| --------- previous definition of the module `a` here | --------- previous definition of the module `a` here
LL | LL |
LL | pub mod a {} LL | pub mod a {}
| ^^^^^^^^^ `a` redefined here | ^^^^^^^^^ `a` redefined here
| |

View file

@ -3,7 +3,7 @@ error[E0308]: mismatched types
| |
LL | struct Foo(u32); LL | struct Foo(u32);
| ---------------- fn(u32) -> Foo {Foo} defined here | ---------------- fn(u32) -> Foo {Foo} defined here
LL | LL |
LL | fn test() -> Foo { Foo } LL | fn test() -> Foo { Foo }
| --- ^^^ expected struct `Foo`, found fn item | --- ^^^ expected struct `Foo`, found fn item
| | | |

View file

@ -3,7 +3,7 @@ error: captured variable cannot escape `FnMut` closure body
| |
LL | let mut x: Box<()> = Box::new(()); LL | let mut x: Box<()> = Box::new(());
| ----- variable defined here | ----- variable defined here
LL | LL |
LL | || { LL | || {
| - inferred to be a `FnMut` closure | - inferred to be a `FnMut` closure
LL | &mut x LL | &mut x

View file

@ -3,7 +3,7 @@ error: captured variable cannot escape `FnMut` closure body
| |
LL | let mut x: Vec<()> = Vec::new(); LL | let mut x: Vec<()> = Vec::new();
| ----- variable defined here | ----- variable defined here
LL | LL |
LL | || { LL | || {
| - inferred to be a `FnMut` closure | - inferred to be a `FnMut` closure
LL | / || { LL | / || {

View file

@ -5,7 +5,7 @@ LL | / fn bar() {
LL | | Foo { baz: 0 }.bar(); LL | | Foo { baz: 0 }.bar();
LL | | } LL | | }
| |_____- previous definition of `bar` here | |_____- previous definition of `bar` here
LL | LL |
LL | / fn bar() { LL | / fn bar() {
LL | | } LL | | }
| |_____^ duplicate definition | |_____^ duplicate definition

View file

@ -3,7 +3,7 @@ error[E0502]: cannot borrow `heap` as immutable because it is also borrowed as m
| |
LL | let borrow = heap.peek_mut(); LL | let borrow = heap.peek_mut();
| --------------- mutable borrow occurs here | --------------- mutable borrow occurs here
LL | LL |
LL | match (borrow, ()) { LL | match (borrow, ()) {
| ------------ a temporary with access to the mutable borrow is created here ... | ------------ a temporary with access to the mutable borrow is created here ...
LL | (Some(_), ()) => { LL | (Some(_), ()) => {

View file

@ -3,7 +3,7 @@ error[E0423]: expected function, tuple struct or tuple variant, found struct `X`
| |
LL | struct X {} LL | struct X {}
| ----------- `X` defined here | ----------- `X` defined here
LL | LL |
LL | const Y: X = X("ö"); LL | const Y: X = X("ö");
| ^^^^^^ help: use struct literal syntax instead: `X {}` | ^^^^^^ help: use struct literal syntax instead: `X {}`

View file

@ -3,7 +3,7 @@ error[E0621]: explicit lifetime required in the type of `x`
| |
LL | fn foo<'a>(&'a self, x: &i32) -> &i32 { LL | fn foo<'a>(&'a self, x: &i32) -> &i32 {
| ---- help: add explicit lifetime `'a` to the type of `x`: `&'a i32` | ---- help: add explicit lifetime `'a` to the type of `x`: `&'a i32`
LL | LL |
LL | if true { &self.field } else { x } LL | if true { &self.field } else { x }
| ^ lifetime `'a` required | ^ lifetime `'a` required

View file

@ -5,7 +5,7 @@ LL | fn foo<'a>(x: &i32, y: &'a i32) -> &'a i32 {
| -- - let's call the lifetime of this reference `'1` | -- - let's call the lifetime of this reference `'1`
| | | |
| lifetime `'a` defined here | lifetime `'a` defined here
LL | LL |
LL | if x > y { x } else { y } LL | if x > y { x } else { y }
| ^ associated function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'1` | ^ associated function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'1`

View file

@ -5,7 +5,7 @@ LL | fn foo<'a>(&self, x: &'a i32) -> &i32 {
| -- - let's call the lifetime of this reference `'1` | -- - let's call the lifetime of this reference `'1`
| | | |
| lifetime `'a` defined here | lifetime `'a` defined here
LL | LL |
LL | x LL | x
| ^ associated function was supposed to return data with lifetime `'1` but it is returning data with lifetime `'a` | ^ associated function was supposed to return data with lifetime `'1` but it is returning data with lifetime `'a`

View file

@ -5,7 +5,7 @@ LL | fn foo<'a>(&self, x: &'a Foo) -> &'a Foo {
| -- - let's call the lifetime of this reference `'1` | -- - let's call the lifetime of this reference `'1`
| | | |
| lifetime `'a` defined here | lifetime `'a` defined here
LL | LL |
LL | if true { x } else { self } LL | if true { x } else { self }
| ^^^^ associated function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'1` | ^^^^ associated function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'1`

View file

@ -3,7 +3,7 @@ warning: allow(unused_variables) incompatible with previous forbid
| |
LL | #![forbid(unused)] LL | #![forbid(unused)]
| ------ `forbid` level set here | ------ `forbid` level set here
LL | LL |
LL | #[allow(unused_variables)] LL | #[allow(unused_variables)]
| ^^^^^^^^^^^^^^^^ overruled by previous forbid | ^^^^^^^^^^^^^^^^ overruled by previous forbid
| |
@ -16,7 +16,7 @@ warning: allow(unused_variables) incompatible with previous forbid
| |
LL | #![forbid(unused)] LL | #![forbid(unused)]
| ------ `forbid` level set here | ------ `forbid` level set here
LL | LL |
LL | #[allow(unused_variables)] LL | #[allow(unused_variables)]
| ^^^^^^^^^^^^^^^^ overruled by previous forbid | ^^^^^^^^^^^^^^^^ overruled by previous forbid
| |
@ -28,7 +28,7 @@ warning: allow(unused_variables) incompatible with previous forbid
| |
LL | #![forbid(unused)] LL | #![forbid(unused)]
| ------ `forbid` level set here | ------ `forbid` level set here
LL | LL |
LL | #[allow(unused_variables)] LL | #[allow(unused_variables)]
| ^^^^^^^^^^^^^^^^ overruled by previous forbid | ^^^^^^^^^^^^^^^^ overruled by previous forbid
| |

View file

@ -3,7 +3,7 @@ error[E0453]: allow(unused) incompatible with previous forbid
| |
LL | #![forbid(unused_variables)] LL | #![forbid(unused_variables)]
| ---------------- `forbid` level set here | ---------------- `forbid` level set here
LL | LL |
LL | #[allow(unused)] LL | #[allow(unused)]
| ^^^^^^ overruled by previous forbid | ^^^^^^ overruled by previous forbid
@ -12,7 +12,7 @@ error[E0453]: allow(unused) incompatible with previous forbid
| |
LL | #![forbid(unused_variables)] LL | #![forbid(unused_variables)]
| ---------------- `forbid` level set here | ---------------- `forbid` level set here
LL | LL |
LL | #[allow(unused)] LL | #[allow(unused)]
| ^^^^^^ overruled by previous forbid | ^^^^^^ overruled by previous forbid

View file

@ -3,7 +3,7 @@ warning: deny(warnings) incompatible with previous forbid
| |
LL | #![forbid(warnings)] LL | #![forbid(warnings)]
| -------- `forbid` level set here | -------- `forbid` level set here
LL | LL |
LL | #[deny(warnings)] LL | #[deny(warnings)]
| ^^^^^^^^ overruled by previous forbid | ^^^^^^^^ overruled by previous forbid
| |
@ -16,7 +16,7 @@ warning: deny(warnings) incompatible with previous forbid
| |
LL | #![forbid(warnings)] LL | #![forbid(warnings)]
| -------- `forbid` level set here | -------- `forbid` level set here
LL | LL |
LL | #[deny(warnings)] LL | #[deny(warnings)]
| ^^^^^^^^ overruled by previous forbid | ^^^^^^^^ overruled by previous forbid
| |
@ -28,7 +28,7 @@ warning: deny(warnings) incompatible with previous forbid
| |
LL | #![forbid(warnings)] LL | #![forbid(warnings)]
| -------- `forbid` level set here | -------- `forbid` level set here
LL | LL |
LL | #[deny(warnings)] LL | #[deny(warnings)]
| ^^^^^^^^ overruled by previous forbid | ^^^^^^^^ overruled by previous forbid
| |

View file

@ -3,7 +3,7 @@ error[E0453]: allow(deprecated) incompatible with previous forbid
| |
LL | #![forbid(deprecated)] LL | #![forbid(deprecated)]
| ---------- `forbid` level set here | ---------- `forbid` level set here
LL | LL |
LL | #[allow(deprecated)] LL | #[allow(deprecated)]
| ^^^^^^^^^^ overruled by previous forbid | ^^^^^^^^^^ overruled by previous forbid
@ -12,7 +12,7 @@ error[E0453]: allow(deprecated) incompatible with previous forbid
| |
LL | #![forbid(deprecated)] LL | #![forbid(deprecated)]
| ---------- `forbid` level set here | ---------- `forbid` level set here
LL | LL |
LL | #[allow(deprecated)] LL | #[allow(deprecated)]
| ^^^^^^^^^^ overruled by previous forbid | ^^^^^^^^^^ overruled by previous forbid

View file

@ -3,7 +3,7 @@ error: conflicting implementations of trait `Foo` for type `(dyn std::marker::Se
| |
LL | impl Foo for dyn Send {} LL | impl Foo for dyn Send {}
| --------------------- first implementation here | --------------------- first implementation here
LL | LL |
LL | impl Foo for dyn Send + Send {} LL | impl Foo for dyn Send + Send {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + 'static)` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + 'static)`
| |
@ -16,7 +16,7 @@ error: conflicting implementations of trait `Foo` for type `(dyn std::marker::Se
| |
LL | impl Foo for dyn Send + Sync {} LL | impl Foo for dyn Send + Sync {}
| ---------------------------- first implementation here | ---------------------------- first implementation here
LL | LL |
LL | impl Foo for dyn Sync + Send {} LL | impl Foo for dyn Sync + Send {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `(dyn std::marker::Send + std::marker::Sync + 'static)`
| |

View file

@ -3,7 +3,7 @@ error: `Umm` held across a suspend point, but should not be
| |
LL | let guard = &mut self.u; LL | let guard = &mut self.u;
| ^^^^^^ | ^^^^^^
LL | LL |
LL | other().await; LL | other().await;
| ------ the value is held across this suspend point | ------ the value is held across this suspend point
| |

View file

@ -23,7 +23,7 @@ error: boxed `Wow` trait object held across a suspend point, but should not be
| |
LL | let _guard2 = r#dyn(); LL | let _guard2 = r#dyn();
| ^^^^^^^ | ^^^^^^^
LL | LL |
LL | other().await; LL | other().await;
| ------ the value is held across this suspend point | ------ the value is held across this suspend point
| |

View file

@ -5,7 +5,7 @@ LL | let x: Box<_> = 5.into();
| - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
LL | let y = x; LL | let y = x;
| - value moved here | - value moved here
LL | LL |
LL | println!("{}", *x); LL | println!("{}", *x);
| ^^ value borrowed here after move | ^^ value borrowed here after move
| |

View file

@ -3,7 +3,7 @@ error[E0308]: mismatched types
| |
LL | enum B { B } LL | enum B { B }
| - unit variant defined here | - unit variant defined here
LL | LL |
LL | fn main() { let x: A = A::A; match x { B::B => { } } } LL | fn main() { let x: A = A::A; match x { B::B => { } } }
| - ^^^^ expected enum `A`, found enum `B` | - ^^^^ expected enum `A`, found enum `B`
| | | |

View file

@ -3,7 +3,7 @@ error[E0412]: cannot find type `N` in this scope
| |
LL | struct X<const N: u8>(); LL | struct X<const N: u8>();
| ------------------------ similarly named struct `X` defined here | ------------------------ similarly named struct `X` defined here
LL | LL |
LL | impl X<N> {} LL | impl X<N> {}
| ^ | ^
| |

View file

@ -6,7 +6,7 @@ LL | y: &y,
... ...
LL | } LL | }
| - `y` dropped here while still borrowed | - `y` dropped here while still borrowed
LL | LL |
LL | deref(p); LL | deref(p);
| - borrow later used here | - borrow later used here

View file

@ -32,7 +32,7 @@ LL | closure(&mut p, &y);
LL | LL |
LL | } LL | }
| - `y` dropped here while still borrowed | - `y` dropped here while still borrowed
LL | LL |
LL | deref(p); LL | deref(p);
| - borrow later used here | - borrow later used here

View file

@ -54,7 +54,7 @@ LL | let mut closure1 = || p = &y;
... ...
LL | } LL | }
| - `y` dropped here while still borrowed | - `y` dropped here while still borrowed
LL | LL |
LL | deref(p); LL | deref(p);
| - borrow later used here | - borrow later used here

View file

@ -36,7 +36,7 @@ LL | let mut closure = || p = &y;
... ...
LL | } LL | }
| - `y` dropped here while still borrowed | - `y` dropped here while still borrowed
LL | LL |
LL | deref(p); LL | deref(p);
| - borrow later used here | - borrow later used here

View file

@ -6,7 +6,7 @@ LL | y = &x
LL | LL |
LL | } LL | }
| - `x` dropped here while still borrowed | - `x` dropped here while still borrowed
LL | LL |
LL | println!("{}", y); LL | println!("{}", y);
| - borrow later used here | - borrow later used here

View file

@ -9,7 +9,7 @@ LL | D("other").next(&_thing1)
... ...
LL | } LL | }
| - `_thing1` dropped here while still borrowed | - `_thing1` dropped here while still borrowed
LL | LL |
LL | ; LL | ;
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D` | - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
| |

View file

@ -8,7 +8,7 @@ LL | D(&_thing1).end()
| a temporary with access to the borrow is created here ... | a temporary with access to the borrow is created here ...
LL | } LL | }
| - `_thing1` dropped here while still borrowed | - `_thing1` dropped here while still borrowed
LL | LL |
LL | ; LL | ;
| - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D` | - ... and the borrow might be used here, when that temporary is dropped and runs the `Drop` code for type `D`
| |

View file

@ -3,7 +3,7 @@ error[E0382]: borrow of moved value: `arc_v`
| |
LL | let arc_v = Arc::new(v); LL | let arc_v = Arc::new(v);
| ----- move occurs because `arc_v` has type `Arc<Vec<i32>>`, which does not implement the `Copy` trait | ----- move occurs because `arc_v` has type `Arc<Vec<i32>>`, which does not implement the `Copy` trait
LL | LL |
LL | thread::spawn(move|| { LL | thread::spawn(move|| {
| ------ value moved into closure here | ------ value moved into closure here
LL | assert_eq!((*arc_v)[3], 4); LL | assert_eq!((*arc_v)[3], 4);

View file

@ -3,7 +3,7 @@ error[E0382]: borrow of moved value: `arc_v`
| |
LL | let arc_v = Arc::new(v); LL | let arc_v = Arc::new(v);
| ----- move occurs because `arc_v` has type `Arc<Vec<i32>>`, which does not implement the `Copy` trait | ----- move occurs because `arc_v` has type `Arc<Vec<i32>>`, which does not implement the `Copy` trait
LL | LL |
LL | thread::spawn(move|| { LL | thread::spawn(move|| {
| ------ value moved into closure here | ------ value moved into closure here
LL | assert_eq!((*arc_v)[3], 4); LL | assert_eq!((*arc_v)[3], 4);

View file

@ -6,7 +6,7 @@ LL | let hello = move || {
LL | | println!("Hello {}", a.0); LL | | println!("Hello {}", a.0);
LL | | }; LL | | };
| |_____- within this `[closure@$DIR/not-clone-closure.rs:7:17: 9:6]` | |_____- within this `[closure@$DIR/not-clone-closure.rs:7:17: 9:6]`
LL | LL |
LL | let hello = hello.clone(); LL | let hello = hello.clone();
| ^^^^^ within `[closure@$DIR/not-clone-closure.rs:7:17: 9:6]`, the trait `Clone` is not implemented for `S` | ^^^^^ within `[closure@$DIR/not-clone-closure.rs:7:17: 9:6]`, the trait `Clone` is not implemented for `S`
| |

View file

@ -5,7 +5,7 @@ LL | / /**
LL | | * My module LL | | * My module
LL | | */ LL | | */
| |___- previous doc comment | |___- previous doc comment
LL | LL |
LL | #![recursion_limit="100"] LL | #![recursion_limit="100"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute | ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute
LL | LL |

View file

@ -3,7 +3,7 @@ error: an inner attribute is not permitted following an outer attribute
| |
LL | #[feature(lang_items)] LL | #[feature(lang_items)]
| ---------------------- previous outer attribute | ---------------------- previous outer attribute
LL | LL |
LL | #![recursion_limit="100"] LL | #![recursion_limit="100"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute | ^^^^^^^^^^^^^^^^^^^^^^^^^ not permitted following an outer attribute
LL | fn main() {} LL | fn main() {}

View file

@ -6,7 +6,7 @@ LL | fn f() { assert_eq!(f(), (), assert_eq!(assert_eq!
| | | | | |
| | unclosed delimiter | | unclosed delimiter
| unclosed delimiter | unclosed delimiter
LL | LL |
LL | fn main() {} LL | fn main() {}
| ^ | ^
@ -18,7 +18,7 @@ LL | fn f() { assert_eq!(f(), (), assert_eq!(assert_eq!
| | | | | |
| | unclosed delimiter | | unclosed delimiter
| unclosed delimiter | unclosed delimiter
LL | LL |
LL | fn main() {} LL | fn main() {}
| ^ | ^
@ -30,7 +30,7 @@ LL | fn f() { assert_eq!(f(), (), assert_eq!(assert_eq!
| | | | | |
| | unclosed delimiter | | unclosed delimiter
| unclosed delimiter | unclosed delimiter
LL | LL |
LL | fn main() {} LL | fn main() {}
| ^ | ^
@ -39,7 +39,7 @@ error: expected one of `(`, `[`, or `{`, found keyword `fn`
| |
LL | fn f() { assert_eq!(f(), (), assert_eq!(assert_eq! LL | fn f() { assert_eq!(f(), (), assert_eq!(assert_eq!
| - expected one of `(`, `[`, or `{` | - expected one of `(`, `[`, or `{`
LL | LL |
LL | fn main() {} LL | fn main() {}
| ^^ unexpected token | ^^ unexpected token
| |

View file

@ -5,8 +5,8 @@ LL | fn p() { match s { v, E { [) {) }
| - - unclosed delimiter | - - unclosed delimiter
| | | |
| unclosed delimiter | unclosed delimiter
LL | LL |
LL | LL |
| ^ | ^
error: this file contains an unclosed delimiter error: this file contains an unclosed delimiter
@ -16,8 +16,8 @@ LL | fn p() { match s { v, E { [) {) }
| - - unclosed delimiter | - - unclosed delimiter
| | | |
| unclosed delimiter | unclosed delimiter
LL | LL |
LL | LL |
| ^ | ^
error: expected one of `,` or `}`, found `{` error: expected one of `,` or `}`, found `{`
@ -51,8 +51,8 @@ error: expected one of `.`, `?`, `{`, or an operator, found `}`
| |
LL | fn p() { match s { v, E { [) {) } LL | fn p() { match s { v, E { [) {) }
| ----- while parsing this `match` expression | ----- while parsing this `match` expression
LL | LL |
LL | LL |
| ^ expected one of `.`, `?`, `{`, or an operator | ^ expected one of `.`, `?`, `{`, or an operator
error: mismatched closing delimiter: `)` error: mismatched closing delimiter: `)`

View file

@ -3,7 +3,7 @@ error: unexpected closing delimiter: `}`
| |
LL | fn main() { LL | fn main() {
| - this opening brace... | - this opening brace...
LL | LL |
LL | } LL | }
| - ...matches this closing brace | - ...matches this closing brace
LL | let _ = (); LL | let _ = ();

View file

@ -3,7 +3,7 @@ error: unreachable statement
| |
LL | loop{} LL | loop{}
| ------ any code following this expression is unreachable | ------ any code following this expression is unreachable
LL | LL |
LL | let a = 3; LL | let a = 3;
| ^^^^^^^^^^ unreachable statement | ^^^^^^^^^^ unreachable statement
| |

View file

@ -3,7 +3,7 @@ error[E0530]: function parameters cannot shadow statics
| |
LL | static foo: i32 = 0; LL | static foo: i32 = 0;
| -------------------- the static `foo` is defined here | -------------------- the static `foo` is defined here
LL | LL |
LL | fn bar(foo: i32) {} LL | fn bar(foo: i32) {}
| ^^^ cannot be named the same as a static | ^^^ cannot be named the same as a static
@ -12,7 +12,7 @@ error[E0530]: function parameters cannot shadow statics
| |
LL | use self::submod::answer; LL | use self::submod::answer;
| -------------------- the static `answer` is imported here | -------------------- the static `answer` is imported here
LL | LL |
LL | fn question(answer: i32) {} LL | fn question(answer: i32) {}
| ^^^^^^ cannot be named the same as a static | ^^^^^^ cannot be named the same as a static

View file

@ -3,7 +3,7 @@ error[E0433]: failed to resolve: use of undeclared type `Baz`
| |
LL | let Baz: &str = ""; LL | let Baz: &str = "";
| --- help: `Baz` is defined here, but is not a type | --- help: `Baz` is defined here, but is not a type
LL | LL |
LL | println!("{}", Baz::Bar); LL | println!("{}", Baz::Bar);
| ^^^ use of undeclared type `Baz` | ^^^ use of undeclared type `Baz`

View file

@ -9,7 +9,7 @@ error[E0412]: cannot find type `Baz` in this scope
| |
LL | enum Bar { } LL | enum Bar { }
| -------- similarly named enum `Bar` defined here | -------- similarly named enum `Bar` defined here
LL | LL |
LL | type A = Baz; // Misspelled type name. LL | type A = Baz; // Misspelled type name.
| ^^^ help: an enum with a similar name exists: `Bar` | ^^^ help: an enum with a similar name exists: `Bar`

View file

@ -3,7 +3,7 @@ error[E0255]: the name `transmute` is defined multiple times
| |
LL | use std::mem::transmute; LL | use std::mem::transmute;
| ------------------- previous import of the value `transmute` here | ------------------- previous import of the value `transmute` here
LL | LL |
LL | fn transmute() {} LL | fn transmute() {}
| ^^^^^^^^^^^^^^ `transmute` redefined here | ^^^^^^^^^^^^^^ `transmute` redefined here
| |

View file

@ -3,7 +3,7 @@ error[E0255]: the name `Iter` is defined multiple times
| |
LL | use std::slice::Iter; LL | use std::slice::Iter;
| ---------------- previous import of the type `Iter` here | ---------------- previous import of the type `Iter` here
LL | LL |
LL | struct Iter; LL | struct Iter;
| ^^^^^^^^^^^^ `Iter` redefined here | ^^^^^^^^^^^^ `Iter` redefined here
| |

View file

@ -17,7 +17,7 @@ LL | | I: Iterator,
LL | | { LL | | {
LL | | } LL | | }
| |_- first implementation here | |_- first implementation here
LL | LL |
LL | impl IntoPyDictPointer for () LL | impl IntoPyDictPointer for ()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()` | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `()`
| |

View file

@ -48,7 +48,7 @@ error[E0046]: not all trait items implemented, missing: `Type`, `foo`, `bar`, `q
| |
LL | type Type; LL | type Type;
| ---------- `Type` from trait | ---------- `Type` from trait
LL | LL |
LL | fn foo(); LL | fn foo();
| --------- `foo` from trait | --------- `foo` from trait
LL | fn bar(); LL | fn bar();

View file

@ -262,7 +262,7 @@ LL | trait _5 = Obj + Send;
| | | |
| additional non-auto trait | additional non-auto trait
| first non-auto trait | first non-auto trait
LL | LL |
LL | type _T20 = dyn _5 + _5; LL | type _T20 = dyn _5 + _5;
| -- ^^ trait alias used in trait object type (additional use) | -- ^^ trait alias used in trait object type (additional use)
| | | |
@ -326,7 +326,7 @@ LL | trait _6 = _5 + _5; // ==> Obj + Send + Obj + Send
| -- -- referenced here (additional use) | -- -- referenced here (additional use)
| | | |
| referenced here (first use) | referenced here (first use)
LL | LL |
LL | type _T30 = dyn _6; LL | type _T30 = dyn _6;
| ^^ | ^^
| | | |
@ -392,7 +392,7 @@ LL | trait _7 = _5 + Sync;
| -- referenced here (first use) | -- referenced here (first use)
LL | trait _8 = Unpin + _7; LL | trait _8 = Unpin + _7;
| -- referenced here (first use) | -- referenced here (first use)
LL | LL |
LL | type _T40 = dyn _8 + Obj; LL | type _T40 = dyn _8 + Obj;
| -- ^^^ additional non-auto trait | -- ^^^ additional non-auto trait
| | | |

View file

@ -148,7 +148,7 @@ LL | trait _1 = _0;
... ...
LL | trait _5 = Sync + ObjB + Send; LL | trait _5 = Sync + ObjB + Send;
| ---- first non-auto trait | ---- first non-auto trait
LL | LL |
LL | type _T20 = dyn _5 + _1; LL | type _T20 = dyn _5 + _1;
| -- ^^ trait alias used in trait object type (additional use) | -- ^^ trait alias used in trait object type (additional use)
| | | |
@ -460,7 +460,7 @@ LL | trait _9 = _5 + Sync;
| -- referenced here (first use) | -- referenced here (first use)
LL | trait _10 = Unpin + _9; LL | trait _10 = Unpin + _9;
| -- referenced here (first use) | -- referenced here (first use)
LL | LL |
LL | type _T40 = dyn _10 + ObjA; LL | type _T40 = dyn _10 + ObjA;
| --- ^^^^ additional non-auto trait | --- ^^^^ additional non-auto trait
| | | |

View file

@ -12,7 +12,7 @@ error[E0224]: at least one trait is required for an object type
| |
LL | trait _2 = _1 + _1; LL | trait _2 = _1 + _1;
| ------------------- this alias does not contain a trait | ------------------- this alias does not contain a trait
LL | LL |
LL | type _T1 = dyn _2; LL | type _T1 = dyn _2;
| ^^^^^^ | ^^^^^^

View file

@ -3,7 +3,7 @@ error[E0505]: cannot move out of `v` because it is borrowed
| |
LL | let el = &v[0]; LL | let el = &v[0];
| - borrow of `v` occurs here | - borrow of `v` occurs here
LL | LL |
LL | for _ in v { LL | for _ in v {
| ^ move out of `v` occurs here | ^ move out of `v` occurs here
LL | LL |

View file

@ -42,7 +42,7 @@ LL | let k = &mut i;
... ...
LL | i = 40; LL | i = 40;
| ^^^^^^ assignment to borrowed `i` occurs here | ^^^^^^ assignment to borrowed `i` occurs here
LL | LL |
LL | let i_ptr = if let Err(i_ptr) = j { i_ptr } else { panic ! ("") }; LL | let i_ptr = if let Err(i_ptr) = j { i_ptr } else { panic ! ("") };
| - borrow later used here | - borrow later used here

View file

@ -3,7 +3,7 @@ warning: unreachable expression
| |
LL | return; LL | return;
| ------ any code following this expression is unreachable | ------ any code following this expression is unreachable
LL | LL |
LL | / try { LL | / try {
LL | | loop { LL | | loop {
LL | | err()?; LL | | err()?;
@ -32,7 +32,7 @@ LL | / loop {
LL | | err()?; LL | | err()?;
LL | | } LL | | }
| |_________- any code following this expression is unreachable | |_________- any code following this expression is unreachable
LL | LL |
LL | 42 LL | 42
| ^^ unreachable expression | ^^ unreachable expression

View file

@ -21,7 +21,7 @@ error[E0308]: mismatched types
| |
LL | type Closure = impl FnOnce(); LL | type Closure = impl FnOnce();
| ------------- the expected opaque type | ------------- the expected opaque type
LL | LL |
LL | fn c() -> Closure { LL | fn c() -> Closure {
| ------- expected `Closure` because of return type | ------- expected `Closure` because of return type
LL | || -> Closure { || () } LL | || -> Closure { || () }

Some files were not shown because too many files have changed in this diff Show more