]> git.lizzy.rs Git - rust.git/blob - src/test/ui/argument-suggestions/issue-100154.stderr
Rollup merge of #104294 - compiler-errors:inline-ct-err-in-mir-build, r=davidtwco
[rust.git] / src / test / ui / argument-suggestions / issue-100154.stderr
1 error[E0107]: this function takes 0 generic arguments but 1 generic argument was supplied
2   --> $DIR/issue-100154.rs:4:5
3    |
4 LL |     foo::<()>(());
5    |     ^^^------ help: remove these generics
6    |     |
7    |     expected 0 generic arguments
8    |
9 note: function defined here, with 0 generic parameters
10   --> $DIR/issue-100154.rs:1:4
11    |
12 LL | fn foo(i: impl std::fmt::Display) {}
13    |    ^^^
14    = note: `impl Trait` cannot be explicitly specified as a generic argument
15
16 error[E0277]: `()` doesn't implement `std::fmt::Display`
17   --> $DIR/issue-100154.rs:4:15
18    |
19 LL |     foo::<()>(());
20    |     --------- ^^ `()` cannot be formatted with the default formatter
21    |     |
22    |     required by a bound introduced by this call
23    |
24    = help: the trait `std::fmt::Display` is not implemented for `()`
25    = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead
26 note: required by a bound in `foo`
27   --> $DIR/issue-100154.rs:1:16
28    |
29 LL | fn foo(i: impl std::fmt::Display) {}
30    |                ^^^^^^^^^^^^^^^^^ required by this bound in `foo`
31
32 error: aborting due to 2 previous errors
33
34 Some errors have detailed explanations: E0107, E0277.
35 For more information about an error, try `rustc --explain E0107`.