diff options
| author | Lukas Wirth <lukas.wirth@ferrous-systems.com> | 2025-06-05 08:41:49 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukas.wirth@ferrous-systems.com> | 2025-06-05 09:19:31 +0200 |
| commit | 46326e159f5008c1dca78911442167d5dee07b64 (patch) | |
| tree | bdf0c29ea8750cbd76079080184aaf33cbf8adb6 /tests/ui/structs-enums | |
| parent | 81a964c23ea4fe9ab52b4449bb166bf280035797 (diff) | |
| download | rust-46326e159f5008c1dca78911442167d5dee07b64.tar.gz rust-46326e159f5008c1dca78911442167d5dee07b64.zip | |
Use non-2015 edition paths in tests that do not test for their resolution
Diffstat (limited to 'tests/ui/structs-enums')
| -rw-r--r-- | tests/ui/structs-enums/issue-2718-a.rs | 2 | ||||
| -rw-r--r-- | tests/ui/structs-enums/namespaced-enum-glob-import.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/structs-enums/issue-2718-a.rs b/tests/ui/structs-enums/issue-2718-a.rs index 6c491584540..f799a82447f 100644 --- a/tests/ui/structs-enums/issue-2718-a.rs +++ b/tests/ui/structs-enums/issue-2718-a.rs @@ -3,7 +3,7 @@ pub struct SendPacket<T> { } mod pingpong { - use SendPacket; + use crate::SendPacket; pub type Ping = SendPacket<Pong>; pub struct Pong(SendPacket<Ping>); //~^ ERROR recursive type `Pong` has infinite size diff --git a/tests/ui/structs-enums/namespaced-enum-glob-import.rs b/tests/ui/structs-enums/namespaced-enum-glob-import.rs index e8a709d5bd0..82742a934c4 100644 --- a/tests/ui/structs-enums/namespaced-enum-glob-import.rs +++ b/tests/ui/structs-enums/namespaced-enum-glob-import.rs @@ -14,7 +14,7 @@ mod m2 { } mod m { - pub use m2::Foo::*; + pub use crate::m2::Foo::*; } fn _f(f: m2::Foo) { |
