From 3e1cf110602da7bcc8546224fc97dbe72bc63bf5 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 12 Sep 2025 18:07:55 -0700 Subject: [PATCH] Organize on_unimplemented ui test into directory --- .../required_locally.rs} | 0 .../required_locally.stderr} | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename test_suite/tests/ui/{on_unimplemented.rs => unimplemented/required_locally.rs} (100%) rename test_suite/tests/ui/{on_unimplemented.stderr => unimplemented/required_locally.stderr} (86%) diff --git a/test_suite/tests/ui/on_unimplemented.rs b/test_suite/tests/ui/unimplemented/required_locally.rs similarity index 100% rename from test_suite/tests/ui/on_unimplemented.rs rename to test_suite/tests/ui/unimplemented/required_locally.rs diff --git a/test_suite/tests/ui/on_unimplemented.stderr b/test_suite/tests/ui/unimplemented/required_locally.stderr similarity index 86% rename from test_suite/tests/ui/on_unimplemented.stderr rename to test_suite/tests/ui/unimplemented/required_locally.stderr index ec48b6d7..5828800f 100644 --- a/test_suite/tests/ui/on_unimplemented.stderr +++ b/test_suite/tests/ui/unimplemented/required_locally.stderr @@ -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) -> 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