-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
consider unevaluated consts in extract_inference_diagnostics_data
- Loading branch information
Showing
4 changed files
with
95 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,5 @@ fn main() { | |
//~^ ERROR type annotations needed | ||
|
||
_q = foo::<_, 2>(_q); | ||
//~^ ERROR type annotations needed | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
error[E0283]: type annotations needed | ||
error[E0282]: type annotations needed | ||
--> $DIR/issue-83249.rs:19:13 | ||
| | ||
LL | let _ = foo([0; 1]); | ||
| - ^^^ cannot infer type for type parameter `T` declared on the function `foo` | ||
| | | ||
| consider giving this pattern a type | ||
| | ||
= note: cannot satisfy `_: Foo` | ||
note: required by a bound in `foo` | ||
--> $DIR/issue-83249.rs:12:11 | ||
| | ||
LL | fn foo<T: Foo>(_: [u8; T::N]) -> T { | ||
| ^^^ required by this bound in `foo` | ||
help: consider specifying the type argument in the function call | ||
| | ||
LL | let _ = foo::<T>([0; 1]); | ||
| +++++ | ||
|
||
error: aborting due to previous error | ||
|
||
For more information about this error, try `rustc --explain E0283`. | ||
For more information about this error, try `rustc --explain E0282`. |