]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0657.stderr
Use assert_eq! in copy_from_slice
[rust.git] / src / test / ui / error-codes / E0657.stderr
1 error[E0657]: `impl Trait` can only capture lifetimes bound at the fn or impl level
2   --> $DIR/E0657.rs:19:31
3    |
4 LL |     -> Box<for<'a> Id<impl Lt<'a>>>
5    |                               ^^
6
7 error[E0657]: `impl Trait` can only capture lifetimes bound at the fn or impl level
8   --> $DIR/E0657.rs:28:35
9    |
10 LL |         -> Box<for<'a> Id<impl Lt<'a>>>
11    |                                   ^^
12
13 error[E0308]: mismatched types
14   --> $DIR/E0657.rs:22:5
15    |
16 LL |     () //~ ERROR mismatched types
17    |     ^^ expected struct `std::boxed::Box`, found ()
18    |
19    = note: expected type `std::boxed::Box<Id<_> + 'static>`
20               found type `()`
21
22 error[E0308]: mismatched types
23   --> $DIR/E0657.rs:31:9
24    |
25 LL |         () //~ ERROR mismatched types
26    |         ^^ expected struct `std::boxed::Box`, found ()
27    |
28    = note: expected type `std::boxed::Box<Id<_> + 'static>`
29               found type `()`
30
31 error: aborting due to 4 previous errors
32
33 Some errors occurred: E0308, E0657.
34 For more information about an error, try `rustc --explain E0308`.