We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0201305 commit f949e10Copy full SHA for f949e10
src/test/compile-fail/private-type-in-interface.rs
@@ -35,6 +35,8 @@ type A = <m::Alias as m::Trait>::X; //~ ERROR type `m::Priv` is private
35
trait Tr2<T> {}
36
impl<T> Tr2<T> for u8 {}
37
fn g() -> impl Tr2<m::Alias> { 0 } //~ ERROR type `m::Priv` is private
38
+//~^ ERROR type `m::Priv` is private
39
fn g_ext() -> impl Tr2<ext::Alias> { 0 } //~ ERROR type `ext::Priv` is private
40
+//~^ ERROR type `ext::Priv` is private
41
42
fn main() {}
0 commit comments