review comments
This commit is contained in:
parent
eb53ca3aad
commit
b7982bbbe0
7 changed files with 191 additions and 114 deletions
|
|
@ -8,7 +8,7 @@ error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attri
|
|||
35 | | // (unsafe to access self.1 due to #[may_dangle] on A)
|
||||
36 | | fn drop(&mut self) { println!("drop {} {:?}", self.0, self.2); }
|
||||
37 | | }
|
||||
| |_^ ..ending here
|
||||
| |_^ ...ending here
|
||||
|
||||
error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attribute
|
||||
--> $DIR/dropck-eyepatch-implies-unsafe-impl.rs:38:1
|
||||
|
|
@ -20,7 +20,7 @@ error[E0569]: requires an `unsafe impl` declaration due to `#[may_dangle]` attri
|
|||
41 | | // (unsafe to access self.1 due to #[may_dangle] on 'a)
|
||||
42 | | fn drop(&mut self) { println!("drop {} {:?}", self.0, self.2); }
|
||||
43 | | }
|
||||
| |_^ ..ending here
|
||||
| |_^ ...ending here
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ help: consider using an explicit lifetime parameter as shown: fn from_str(path:
|
|||
| _____^ starting here...
|
||||
26 | | Ok(Foo { field: path })
|
||||
27 | | }
|
||||
| |_____^ ..ending here
|
||||
| |_____^ ...ending here
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ fn main() {
|
|||
let x = 1;
|
||||
let y = 2;
|
||||
let z = 3;
|
||||
foo(1 +
|
||||
foo(1 as u32 +
|
||||
|
||||
bar(x,
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,19 @@
|
|||
error[E0277]: the trait bound `{integer}: std::ops::Add<()>` is not satisfied
|
||||
error[E0277]: the trait bound `u32: std::ops::Add<()>` is not satisfied
|
||||
--> $DIR/multiline-span-simple.rs:23:9
|
||||
|
|
||||
23 | foo(1 +
|
||||
23 | foo(1 as u32 +
|
||||
| _________^ starting here...
|
||||
24 | |
|
||||
25 | | bar(x,
|
||||
26 | |
|
||||
27 | | y),
|
||||
| |______________^ ...ending here: the trait `std::ops::Add<()>` is not implemented for `{integer}`
|
||||
| |______________^ ...ending here: the trait `std::ops::Add<()>` is not implemented for `u32`
|
||||
|
|
||||
= help: the following implementations were found:
|
||||
= help: <u32 as std::ops::Add>
|
||||
= help: <&'a u32 as std::ops::Add<u32>>
|
||||
= help: <u32 as std::ops::Add<&'a u32>>
|
||||
= help: <&'b u32 as std::ops::Add<&'a u32>>
|
||||
= help: and 90 others
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue