summaryrefslogtreecommitdiffstats
path: root/src/test/ui/closures/issue-90871.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/closures/issue-90871.stderr')
-rw-r--r--src/test/ui/closures/issue-90871.stderr23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/test/ui/closures/issue-90871.stderr b/src/test/ui/closures/issue-90871.stderr
index 1e102cc98..a482750fb 100644
--- a/src/test/ui/closures/issue-90871.stderr
+++ b/src/test/ui/closures/issue-90871.stderr
@@ -1,21 +1,26 @@
error[E0412]: cannot find type `n` in this scope
- --> $DIR/issue-90871.rs:2:8
+ --> $DIR/issue-90871.rs:4:22
|
-LL | 2: n([u8; || 1])
- | ^ expecting a type here because of type ascription
+LL | type_ascribe!(2, n([u8; || 1]))
+ | ^ help: a trait with a similar name exists: `Fn`
+ |
+ ::: $SRC_DIR/core/src/ops/function.rs:LL:COL
+ |
+LL | pub trait Fn<Args: Tuple>: FnMut<Args> {
+ | -------------------------------------- similarly named trait `Fn` defined here
error[E0308]: mismatched types
- --> $DIR/issue-90871.rs:2:15
+ --> $DIR/issue-90871.rs:4:29
|
-LL | 2: n([u8; || 1])
- | ^^^^ expected `usize`, found closure
+LL | type_ascribe!(2, n([u8; || 1]))
+ | ^^^^ expected `usize`, found closure
|
= note: expected type `usize`
- found closure `[closure@$DIR/issue-90871.rs:2:15: 2:17]`
+ found closure `[closure@$DIR/issue-90871.rs:4:29: 4:31]`
help: use parentheses to call this closure
|
-LL | 2: n([u8; (|| 1)()])
- | + +++
+LL | type_ascribe!(2, n([u8; (|| 1)()]))
+ | + +++
error: aborting due to 2 previous errors