]> git.lizzy.rs Git - rust.git/blob - tests/ui/higher-rank-trait-bounds/hrtb-cache-issue-54302.stderr
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / ui / higher-rank-trait-bounds / hrtb-cache-issue-54302.stderr
1 error: implementation of `Deserialize` is not general enough
2   --> $DIR/hrtb-cache-issue-54302.rs:19:5
3    |
4 LL |     assert_deserialize_owned::<&'static str>();
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Deserialize` is not general enough
6    |
7    = note: `&'static str` must implement `Deserialize<'0>`, for any lifetime `'0`...
8    = note: ...but `&str` actually implements `Deserialize<'1>`, for some specific lifetime `'1`
9
10 error: aborting due to previous error
11