From f48882a4eeb295db3860451a712f85d34653fa8a Mon Sep 17 00:00:00 2001 From: Padraic Fanning Date: Fri, 18 Jun 2021 13:15:06 -0400 Subject: [PATCH] Add 84737 Issue: rust-lang/rust#84737 --- ices/84737.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ices/84737.sh diff --git a/ices/84737.sh b/ices/84737.sh new file mode 100644 index 00000000..2cef4c18 --- /dev/null +++ b/ices/84737.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +cat > Cargo.toml <<'EOF' +[package] +name = "abc" +version = "0.0.1" +edition = "2018" +EOF + +mkdir -p src + +cat > src/test.rs <<'EOF' +#![allow(incomplete_features)] +#![feature(const_generics)] + +async fn test(test: [(); { 0 }]) { + let _ = &test; + async {}.await; +} +EOF + +cargo test