mirror of
https://github.com/serde-rs/serde.git
synced 2025-09-26 20:40:35 +00:00
Organize on_unimplemented ui test into directory
This commit is contained in:
parent
723fcacad7
commit
3e1cf11060
@ -1,5 +1,5 @@
|
||||
error[E0277]: the trait bound `MyStruct: Serialize` is not satisfied
|
||||
--> tests/ui/on_unimplemented.rs:21:15
|
||||
--> tests/ui/unimplemented/required_locally.rs:21:15
|
||||
|
|
||||
21 | to_string(&MyStruct);
|
||||
| --------- ^^^^^^^^^ unsatisfied trait bound
|
||||
@ -7,7 +7,7 @@ error[E0277]: the trait bound `MyStruct: Serialize` is not satisfied
|
||||
| required by a bound introduced by this call
|
||||
|
|
||||
help: the trait `Serialize` is not implemented for `MyStruct`
|
||||
--> tests/ui/on_unimplemented.rs:18:1
|
||||
--> tests/ui/unimplemented/required_locally.rs:18:1
|
||||
|
|
||||
18 | struct MyStruct;
|
||||
| ^^^^^^^^^^^^^^^
|
||||
@ -24,7 +24,7 @@ help: the trait `Serialize` is not implemented for `MyStruct`
|
||||
(T0, T1, T2, T3, T4)
|
||||
and $N others
|
||||
note: required by a bound in `to_string`
|
||||
--> tests/ui/on_unimplemented.rs:6:8
|
||||
--> tests/ui/unimplemented/required_locally.rs:6:8
|
||||
|
|
||||
4 | fn to_string<T>(_: &T) -> String
|
||||
| --------- required by a bound in this function
|
||||
@ -33,13 +33,13 @@ note: required by a bound in `to_string`
|
||||
| ^^^^^^^^^ required by this bound in `to_string`
|
||||
|
||||
error[E0277]: the trait bound `MyStruct: Deserialize<'_>` is not satisfied
|
||||
--> tests/ui/on_unimplemented.rs:22:23
|
||||
--> tests/ui/unimplemented/required_locally.rs:22:23
|
||||
|
|
||||
22 | let _: MyStruct = from_str("");
|
||||
| ^^^^^^^^^^^^ unsatisfied trait bound
|
||||
|
|
||||
help: the trait `Deserialize<'_>` is not implemented for `MyStruct`
|
||||
--> tests/ui/on_unimplemented.rs:18:1
|
||||
--> tests/ui/unimplemented/required_locally.rs:18:1
|
||||
|
|
||||
18 | struct MyStruct;
|
||||
| ^^^^^^^^^^^^^^^
|
||||
@ -56,7 +56,7 @@ help: the trait `Deserialize<'_>` is not implemented for `MyStruct`
|
||||
(T0, T1, T2, T3)
|
||||
and $N others
|
||||
note: required by a bound in `from_str`
|
||||
--> tests/ui/on_unimplemented.rs:13:8
|
||||
--> tests/ui/unimplemented/required_locally.rs:13:8
|
||||
|
|
||||
11 | fn from_str<'de, T>(_: &'de str) -> T
|
||||
| -------- required by a bound in this function
|
Loading…
x
Reference in New Issue
Block a user