fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
579 B14 linesraw
1error: implementation of `Deserialize` is not general enough
2  --> $DIR/issue-54302.rs:13:5
3   |
4LL | trait Deserialize<'de> {}
5   | ------------------------- trait `Deserialize` defined here
6...
7LL |     assert_deserialize_owned::<&'static str>();
8   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Deserialize` is not general enough
9   |
10   = note: `&'static str` must implement `Deserialize<'0>`, for any lifetime `'0`...
11   = note: ...but `&str` actually implements `Deserialize<'1>`, for some specific lifetime `'1`
12
13error: aborting due to previous error
14