Skip to content

Commit 8b089a1

Browse files
committed
remove unnecessary change
1 parent 681736a commit 8b089a1

3 files changed

+8
-8
lines changed

src/test/ui/span/issue-42234-unknown-receiver-type.full.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
error[E0282]: type annotations needed
22
--> $DIR/issue-42234-unknown-receiver-type.rs:9:24
33
|
4-
LL | let x: Option<_> = None::<_>;
5-
| ^^^^^^^^^ cannot infer type of the type parameter `T` declared on the enum `Option`
4+
LL | let x: Option<_> = None;
5+
| ^^^^ cannot infer type of the type parameter `T` declared on the enum `Option`
66
|
77
= note: type must be known at this point
88
help: consider specifying the generic argument
99
|
10-
LL | let x: Option<_> = None::<_>;
11-
| ~~~~~
10+
LL | let x: Option<_> = None::<T>;
11+
| +++++
1212

1313
error[E0282]: type annotations needed
1414
--> $DIR/issue-42234-unknown-receiver-type.rs:15:10

src/test/ui/span/issue-42234-unknown-receiver-type.generic_arg.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
error[E0282]: type annotations needed
22
--> $DIR/issue-42234-unknown-receiver-type.rs:9:24
33
|
4-
LL | let x: Option<_> = None::<_>;
5-
| ^^^^^^^^^ cannot infer type of the type parameter `T` declared on the enum `Option`
4+
LL | let x: Option<_> = None;
5+
| ^^^^ cannot infer type of the type parameter `T` declared on the enum `Option`
66
|
77
= note: type must be known at this point
88
help: consider specifying the generic argument
99
|
1010
LL | let x: Option<_> = None::<T>;
11-
| ~~~~~
11+
| +++++
1212

1313
error[E0282]: type annotations needed
1414
--> $DIR/issue-42234-unknown-receiver-type.rs:15:10

src/test/ui/span/issue-42234-unknown-receiver-type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// the fix of which this tests).
77

88
fn shines_a_beacon_through_the_darkness() {
9-
let x: Option<_> = None::<_>; //~ ERROR type annotations needed
9+
let x: Option<_> = None; //~ ERROR type annotations needed
1010
x.unwrap().method_that_could_exist_on_some_type();
1111
}
1212

0 commit comments

Comments
 (0)