Skip to content

Commit f949e10

Browse files
committed
While we don't have full existential types yet, there is some duplication in privacy related errors for impl Trait
1 parent 0201305 commit f949e10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/compile-fail/private-type-in-interface.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ type A = <m::Alias as m::Trait>::X; //~ ERROR type `m::Priv` is private
3535
trait Tr2<T> {}
3636
impl<T> Tr2<T> for u8 {}
3737
fn g() -> impl Tr2<m::Alias> { 0 } //~ ERROR type `m::Priv` is private
38+
//~^ ERROR type `m::Priv` is private
3839
fn g_ext() -> impl Tr2<ext::Alias> { 0 } //~ ERROR type `ext::Priv` is private
40+
//~^ ERROR type `ext::Priv` is private
3941

4042
fn main() {}

0 commit comments

Comments
 (0)