In order to expose edition dependent divergences in some tests in the test suite, add explicit `edition` annotations. Some of these tests might require additional work to *avoid* the divergences, as they might have been unintentional. These are not exhaustive changes, purely opportunistic while looking at something else.
13 lines
361 B
Rust
13 lines
361 B
Rust
//@revisions: edition2015 edition2024
|
|
//@[edition2015] edition:2015
|
|
//@[edition2024] edition:2024
|
|
struct Bug {
|
|
V1: [(); {
|
|
let f: impl core::future::Future<Output = u8> = async { 1 };
|
|
//~^ ERROR `impl Trait` is not allowed in the type of variable bindings
|
|
//[edition2015]~| ERROR expected identifier
|
|
1
|
|
}],
|
|
}
|
|
|
|
fn main() {}
|