File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ error[E0412]: cannot find type `PhantomData` in this scope
44LL | _n: PhantomData,
55 | ^^^^^^^^^^^ not found in this scope
66 |
7- help: consider importing one of these items
8- |
9- LL + use core::marker::PhantomData;
7+ help: consider importing this struct
108 |
119LL + use std::marker::PhantomData;
1210 |
Original file line number Diff line number Diff line change @@ -363,6 +363,7 @@ impl RetOtherSelf<T> {
363363 }
364364}
365365
366+ #[ allow( dependency_on_unit_never_type_fallback) ]
366367mod issue7344 {
367368 struct RetImplTraitSelf < T > ( T ) ;
368369
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ LL | | }
8787 | |_________^
8888
8989error: methods called `new` usually return `Self`
90- --> tests/ui/new_ret_no_self.rs:380 :9
90+ --> tests/ui/new_ret_no_self.rs:381 :9
9191 |
9292LL | / fn new(t: T) -> impl Into<i32> {
9393LL | |
@@ -96,7 +96,7 @@ LL | | }
9696 | |_________^
9797
9898error: methods called `new` usually return `Self`
99- --> tests/ui/new_ret_no_self.rs:402 :9
99+ --> tests/ui/new_ret_no_self.rs:403 :9
100100 |
101101LL | / fn new(t: T) -> impl Trait2<(), i32> {
102102LL | |
You can’t perform that action at this time.
0 commit comments