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 | c4ec12f4b701d9be95143f3fa77b1f1af07de18c (patch) | |
| tree | 79e8dc343b1a469ed677ae06e0952cea76ce57cf /compiler/rustc_infer/src | |
| parent | e4a361a48a59ead52b302aaa2e1d9d345264935a (diff) | |
| download | rust-c4ec12f4b701d9be95143f3fa77b1f1af07de18c.tar.gz rust-c4ec12f4b701d9be95143f3fa77b1f1af07de18c.zip | |
adjust how closure/generator types and rvalues are printed
Diffstat (limited to 'compiler/rustc_infer/src')
| -rw-r--r-- | compiler/rustc_infer/src/infer/error_reporting/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/error_reporting/mod.rs b/compiler/rustc_infer/src/infer/error_reporting/mod.rs index 6dba5d2945d..b8701d3d3ef 100644 --- a/compiler/rustc_infer/src/infer/error_reporting/mod.rs +++ b/compiler/rustc_infer/src/infer/error_reporting/mod.rs @@ -1616,7 +1616,7 @@ impl<'tcx> TypeErrCtxt<'_, 'tcx> { // | expected `()`, found closure // | // = note: expected unit type `()` - // found closure `[closure@$DIR/issue-20862.rs:2:5: 2:14 x:_]` + // found closure `{closure@$DIR/issue-20862.rs:2:5: 2:14 x:_}` // // Also ignore opaque `Future`s that come from async fns. if !self.ignore_span.overlaps(span) |
