]> git.lizzy.rs Git - rust.git/blob - src/test/ui/dyn-star/no-implicit-dyn-star.stderr
Auto merge of #105085 - oli-obk:stop_promoting_all_the_things, r=RalfJung
[rust.git] / src / test / ui / dyn-star / no-implicit-dyn-star.stderr
1 error[E0308]: mismatched types
2   --> $DIR/no-implicit-dyn-star.rs:6:48
3    |
4 LL |     dyn_star_foreign::require_dyn_star_display(1usize);
5    |     ------------------------------------------ ^^^^^^ expected trait object `dyn Display`, found `usize`
6    |     |
7    |     arguments to this function are incorrect
8    |
9    = note: expected trait object `(dyn* std::fmt::Display + 'static)`
10                       found type `usize`
11 note: function defined here
12   --> $DIR/auxiliary/dyn-star-foreign.rs:6:8
13    |
14 LL | pub fn require_dyn_star_display(_: dyn* Display) {}
15    |        ^^^^^^^^^^^^^^^^^^^^^^^^
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.