Closed
Description
Code
rustc --edition=2021
async fn main() {
[0usize; 0xffff_ffff_ffff_ffff].await;
}
Meta
rustc --version --verbose
:
c94cb834d05888ef5beeae2cc460156f435e2fb3
Error output
error[E0277]: `[usize; usize::MAX]` is not a future
--> D01319EFC4D41E1760BDE6D24D4EAEBDED06776A984903041C4E462ABADDEE9A.rs:2:37
|
2 | [0usize; 0xffff_ffff_ffff_ffff].await;
| -^^^^^
| ||
| |`[usize; usize::MAX]` is not a future
| help: remove the `.await`
|
= help: the trait `Future` is not implemented for `[usize; usize::MAX]`
= note: [usize; usize::MAX] must be a future or must implement `IntoFuture` to be awaited
= note: required for `[usize; usize::MAX]` to implement `IntoFuture`
Metadata
Metadata
Assignees
Labels
Area: Async & AwaitAsync-await issues that have been triaged during a working group meeting.Category: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Help is requested to fix this issue.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Low priorityRelevant to the compiler team, which will review and decide on the PR/issue.This issue requires a build of rustc or tooling with debug-assertions in some way
Type
Projects
Status
Done