review comments
This commit is contained in:
parent
7d1e47aeb0
commit
165efabbee
20 changed files with 96 additions and 98 deletions
|
|
@ -4,10 +4,10 @@ error[E0282]: type annotations needed
|
|||
LL | let [_, _] = a.into();
|
||||
| ^^^^^^
|
||||
|
|
||||
help: consider giving this pattern a type, where the placeholder `Type` is specified
|
||||
help: consider giving this pattern a type
|
||||
|
|
||||
LL | let [_, _]: Type = a.into();
|
||||
| ++++++
|
||||
LL | let [_, _]: /* Type */ = a.into();
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ error[E0282]: type annotations needed
|
|||
LL | with_closure(|x: u32, y| {});
|
||||
| ^
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | with_closure(|x: u32, y: Type| {});
|
||||
| ++++++
|
||||
LL | with_closure(|x: u32, y: /* Type */| {});
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ error[E0282]: type annotations needed
|
|||
LL | [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
|
||||
| ^
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | [(); &(&'static: loop { |x: Type| {}; }) as *const _ as usize]
|
||||
| ++++++
|
||||
LL | [(); &(&'static: loop { |x: /* Type */| {}; }) as *const _ as usize]
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ error[E0282]: type annotations needed
|
|||
LL | let _ = foo([0; 1]);
|
||||
| ^
|
||||
|
|
||||
help: consider giving this pattern a type, where the placeholder `Type` is specified
|
||||
help: consider giving this pattern a type
|
||||
|
|
||||
LL | let _: Type = foo([0; 1]);
|
||||
| ++++++
|
||||
LL | let _: /* Type */ = foo([0; 1]);
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,10 @@ error[E0282]: type annotations needed
|
|||
LL | |_| true
|
||||
| ^
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | |_: Type| true
|
||||
| ++++++
|
||||
LL | |_: /* Type */| true
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -30,10 +30,10 @@ error[E0282]: type annotations needed
|
|||
LL | |x| String::from("x".as_ref());
|
||||
| ^
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | |x: Type| String::from("x".as_ref());
|
||||
| ++++++
|
||||
LL | |x: /* Type */| String::from("x".as_ref());
|
||||
| ++++++++++++
|
||||
|
||||
error[E0283]: type annotations needed
|
||||
--> $DIR/issue-72690.rs:12:26
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ error[E0282]: type annotations needed
|
|||
LL | let x;
|
||||
| ^
|
||||
|
|
||||
help: consider giving `x` an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving `x` an explicit type
|
||||
|
|
||||
LL | let x: Type;
|
||||
| ++++++
|
||||
LL | let x: /* Type */;
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ LL | let x = panic!();
|
|||
LL | x.clone();
|
||||
| - type must be known at this point
|
||||
|
|
||||
help: consider giving `x` an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving `x` an explicit type
|
||||
|
|
||||
LL | let x: Type = panic!();
|
||||
| ++++++
|
||||
LL | let x: /* Type */ = panic!();
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -17,10 +17,10 @@ error[E0282]: type annotations needed
|
|||
LL | 1 => |c| c + 1,
|
||||
| ^
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | 1 => |c: Type| c + 1,
|
||||
| ++++++
|
||||
LL | 1 => |c: /* Type */| c + 1,
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ error[E0282]: type annotations needed
|
|||
LL | |s| s.len()
|
||||
| ^ - type must be known at this point
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | |s: Type| s.len()
|
||||
| ++++++
|
||||
LL | |s: /* Type */| s.len()
|
||||
| ++++++++++++
|
||||
|
||||
error[E0282]: type annotations needed
|
||||
--> $DIR/branches3.rs:15:10
|
||||
|
|
@ -15,10 +15,10 @@ error[E0282]: type annotations needed
|
|||
LL | |s| s.len()
|
||||
| ^ - type must be known at this point
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | |s: Type| s.len()
|
||||
| ++++++
|
||||
LL | |s: /* Type */| s.len()
|
||||
| ++++++++++++
|
||||
|
||||
error[E0282]: type annotations needed
|
||||
--> $DIR/branches3.rs:23:10
|
||||
|
|
@ -26,10 +26,10 @@ error[E0282]: type annotations needed
|
|||
LL | |s| s.len()
|
||||
| ^ - type must be known at this point
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | |s: Type| s.len()
|
||||
| ++++++
|
||||
LL | |s: /* Type */| s.len()
|
||||
| ++++++++++++
|
||||
|
||||
error[E0282]: type annotations needed
|
||||
--> $DIR/branches3.rs:30:10
|
||||
|
|
@ -37,10 +37,10 @@ error[E0282]: type annotations needed
|
|||
LL | |s| s.len()
|
||||
| ^ - type must be known at this point
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | |s: Type| s.len()
|
||||
| ++++++
|
||||
LL | |s: /* Type */| s.len()
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to 4 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ error[E0282]: type annotations needed
|
|||
LL | let x = match () {
|
||||
| ^
|
||||
|
|
||||
help: consider giving `x` an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving `x` an explicit type
|
||||
|
|
||||
LL | let x: Type = match () {
|
||||
| ++++++
|
||||
LL | let x: /* Type */ = match () {
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ LL | let x;
|
|||
LL | (..) => {}
|
||||
| ---- type must be known at this point
|
||||
|
|
||||
help: consider giving `x` an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving `x` an explicit type
|
||||
|
|
||||
LL | let x: Type;
|
||||
| ++++++
|
||||
LL | let x: /* Type */;
|
||||
| ++++++++++++
|
||||
|
||||
error[E0308]: mismatched types
|
||||
--> $DIR/pat-tuple-bad-type.rs:10:9
|
||||
|
|
|
|||
|
|
@ -191,10 +191,10 @@ error[E0282]: type annotations needed
|
|||
LL | let x @ ..;
|
||||
| ^^^^^^
|
||||
|
|
||||
help: consider giving this pattern a type, where the placeholder `Type` is specified
|
||||
help: consider giving this pattern a type
|
||||
|
|
||||
LL | let x @ ..: Type;
|
||||
| ++++++
|
||||
LL | let x @ ..: /* Type */;
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to 23 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -19,10 +19,10 @@ error[E0282]: type annotations needed
|
|||
LL | let mut N;
|
||||
| ^^^^^
|
||||
|
|
||||
help: consider giving `N` an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving `N` an explicit type
|
||||
|
|
||||
LL | let mut N: Type;
|
||||
| ++++++
|
||||
LL | let mut N: /* Type */;
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to 3 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ LL |
|
|||
LL | x.0;
|
||||
| - type must be known at this point
|
||||
|
|
||||
help: consider giving `x` an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving `x` an explicit type
|
||||
|
|
||||
LL | let mut x: Type = Default::default();
|
||||
| ++++++
|
||||
LL | let mut x: /* Type */ = Default::default();
|
||||
| ++++++++++++
|
||||
|
||||
error[E0282]: type annotations needed
|
||||
--> $DIR/method-and-field-eager-resolution.rs:11:9
|
||||
|
|
@ -21,10 +21,10 @@ LL |
|
|||
LL | x[0];
|
||||
| - type must be known at this point
|
||||
|
|
||||
help: consider giving `x` an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving `x` an explicit type
|
||||
|
|
||||
LL | let mut x: Type = Default::default();
|
||||
| ++++++
|
||||
LL | let mut x: /* Type */ = Default::default();
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@ error[E0282]: type annotations needed
|
|||
LL | |x| x.len()
|
||||
| ^ - type must be known at this point
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | |x: Type| x.len()
|
||||
| ++++++
|
||||
LL | |x: /* Type */| x.len()
|
||||
| ++++++++++++
|
||||
|
||||
error[E0282]: type annotations needed
|
||||
--> $DIR/closures_in_branches.rs:21:10
|
||||
|
|
@ -15,10 +15,10 @@ error[E0282]: type annotations needed
|
|||
LL | |x| x.len()
|
||||
| ^ - type must be known at this point
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | |x: Type| x.len()
|
||||
| ++++++
|
||||
LL | |x: /* Type */| x.len()
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ error[E0282]: type annotations needed
|
|||
LL | let x = |_| {};
|
||||
| ^
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | let x = |_: Type| {};
|
||||
| ++++++
|
||||
LL | let x = |_: /* Type */| {};
|
||||
| ++++++++++++
|
||||
|
||||
error[E0282]: type annotations needed
|
||||
--> $DIR/unknown_type_for_closure.rs:10:14
|
||||
|
|
|
|||
|
|
@ -28,10 +28,10 @@ error[E0282]: type annotations needed
|
|||
LL | let _ = |a, b: _| -> _ { 0 };
|
||||
| ^
|
||||
|
|
||||
help: consider giving this closure parameter an explicit type, where the placeholder `Type` is specified
|
||||
help: consider giving this closure parameter an explicit type
|
||||
|
|
||||
LL | let _ = |a: Type, b: _| -> _ { 0 };
|
||||
| ++++++
|
||||
LL | let _ = |a: /* Type */, b: _| -> _ { 0 };
|
||||
| ++++++++++++
|
||||
|
||||
error: aborting due to 5 previous errors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue