]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/bound/sugar.stderr
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / traits / bound / sugar.stderr
1 error[E0308]: mismatched types
2   --> $DIR/sugar.rs:12:7
3    |
4 LL |     a(x);
5    |     - ^ expected trait `Foo + Send`, found trait `Foo + Sync`
6    |     |
7    |     arguments to this function are incorrect
8    |
9    = note: expected struct `Box<(dyn Foo + Send + 'static)>`
10               found struct `Box<(dyn Foo + Sync + 'static)>`
11 note: function defined here
12   --> $DIR/sugar.rs:5:4
13    |
14 LL | fn a(_x: Box<dyn Foo + Send>) {
15    |    ^ -----------------------
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.