diff options
| author | Michael Goulet <michael@errs.io> | 2022-07-30 05:37:48 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-11-05 18:05:44 +0000 |
| commit | 2257ba92db333277c957b3934cdebc2a0a2c2604 (patch) | |
| tree | 98895d7f019e83680db664de0d01380fe9872d65 /src/test/ui/error-codes | |
| parent | 99b3454d374235f83f8706ddf11caf5a9a837817 (diff) | |
| download | rust-2257ba92db333277c957b3934cdebc2a0a2c2604.tar.gz rust-2257ba92db333277c957b3934cdebc2a0a2c2604.zip | |
Adjust diagnostics, bless tests
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0059.stderr | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/test/ui/error-codes/E0059.stderr b/src/test/ui/error-codes/E0059.stderr index a1b8aeaedbb..f331d014226 100644 --- a/src/test/ui/error-codes/E0059.stderr +++ b/src/test/ui/error-codes/E0059.stderr @@ -1,8 +1,14 @@ -error[E0059]: cannot use call notation; the first type parameter for the function trait is neither a tuple nor unit - --> $DIR/E0059.rs:3:41 +error[E0059]: type parameter to bare `Fn` trait must be a tuple + --> $DIR/E0059.rs:3:11 | LL | fn foo<F: Fn<i32>>(f: F) -> F::Output { f(3) } - | ^^^^ + | ^^^^^^^ the trait `Tuple` is not implemented for `i32` + | +note: required by a bound in `Fn` + --> $SRC_DIR/core/src/ops/function.rs:LL:COL + | +LL | pub trait Fn<Args: Tuple>: FnMut<Args> { + | ^^^^^ required by this bound in `Fn` error: aborting due to previous error |
