diff options
| author | Ralf Jung <post@ralfj.de> | 2023-09-09 08:36:50 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-09-21 22:20:58 +0200 |
| commit | 1fac304bf53f35f2088fad9b40cd919cd7a485d9 (patch) | |
| tree | dfea6e6852fa9673f5e3726a150a9a3abbf4f4d3 | |
| parent | b30cefc775e92892f8d49a649bb09510bbbb79af (diff) | |
| download | rust-1fac304bf53f35f2088fad9b40cd919cd7a485d9.tar.gz rust-1fac304bf53f35f2088fad9b40cd919cd7a485d9.zip | |
adjust how closure/generator types and rvalues are printed
| -rw-r--r-- | tests/ui/box_default.fixed | 2 | ||||
| -rw-r--r-- | tests/ui/box_default.rs | 2 | ||||
| -rw-r--r-- | tests/ui/crashes/ice-6251.stderr | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/box_default.fixed b/tests/ui/box_default.fixed index 22c034c88ab..69cabcb32d3 100644 --- a/tests/ui/box_default.fixed +++ b/tests/ui/box_default.fixed @@ -36,7 +36,7 @@ fn main() { issue_10381(); // `Box::<Option<_>>::default()` would be valid here, but not `Box::default()` or - // `Box::<Option<[closure@...]>::default()` + // `Box::<Option<{closure@...}>::default()` // // Would have a suggestion after https://github.com/rust-lang/rust/blob/fdd030127cc68afec44a8d3f6341525dd34e50ae/compiler/rustc_middle/src/ty/diagnostics.rs#L554-L563 let mut unnameable = Box::new(Option::default()); diff --git a/tests/ui/box_default.rs b/tests/ui/box_default.rs index 89e3888ba21..48fa8bc33bc 100644 --- a/tests/ui/box_default.rs +++ b/tests/ui/box_default.rs @@ -36,7 +36,7 @@ fn main() { issue_10381(); // `Box::<Option<_>>::default()` would be valid here, but not `Box::default()` or - // `Box::<Option<[closure@...]>::default()` + // `Box::<Option<{closure@...}>::default()` // // Would have a suggestion after https://github.com/rust-lang/rust/blob/fdd030127cc68afec44a8d3f6341525dd34e50ae/compiler/rustc_middle/src/ty/diagnostics.rs#L554-L563 let mut unnameable = Box::new(Option::default()); diff --git a/tests/ui/crashes/ice-6251.stderr b/tests/ui/crashes/ice-6251.stderr index 68a5766c90c..11081dc8087 100644 --- a/tests/ui/crashes/ice-6251.stderr +++ b/tests/ui/crashes/ice-6251.stderr @@ -27,7 +27,7 @@ LL | fn bug<T>() -> impl Iterator<Item = [(); { |x: [u8]| x }]> { | ^^^^^^^^^^^ expected `usize`, found closure | = note: expected type `usize` - found closure `[closure@$DIR/ice-6251.rs:4:44: 4:53]` + found closure `{closure@$DIR/ice-6251.rs:4:44: 4:53}` error: aborting due to 3 previous errors |
