Organize on_unimplemented ui test into directory

This commit is contained in:
David Tolnay 2025-09-12 18:07:55 -07:00
parent 723fcacad7
commit 3e1cf11060
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 6 additions and 6 deletions

View File

@ -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