Add test for visibility on a trait item (currently wrong)
This commit is contained in:
parent
f7872887e9
commit
c8bd550c8d
@ -13,6 +13,14 @@ pub impl Foo for Bar {
|
|||||||
// Comment 3
|
// Comment 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inherent]
|
||||||
|
impl Visible for Bar {
|
||||||
|
pub const C: i32;
|
||||||
|
pub type T;
|
||||||
|
pub fn f();
|
||||||
|
pub fn g() {}
|
||||||
|
}
|
||||||
|
|
||||||
pub unsafe impl<'a, 'b, X, Y: Foo<Bar>> !Foo<'a, X> for Bar<'b, Y> where X: Foo<'a, Z> {
|
pub unsafe impl<'a, 'b, X, Y: Foo<Bar>> !Foo<'a, X> for Bar<'b, Y> where X: Foo<'a, Z> {
|
||||||
fn foo() { "hi" }
|
fn foo() { "hi" }
|
||||||
}
|
}
|
||||||
|
@ -174,3 +174,10 @@ Send
|
|||||||
+ DDDDDDDD
|
+ DDDDDDDD
|
||||||
+ DDDDDDDDD
|
+ DDDDDDDDD
|
||||||
+ EEEEEEE;
|
+ EEEEEEE;
|
||||||
|
|
||||||
|
trait Visible {
|
||||||
|
pub const C: i32;
|
||||||
|
pub type T;
|
||||||
|
pub fn f();
|
||||||
|
pub fn g() {}
|
||||||
|
}
|
||||||
|
@ -21,6 +21,14 @@ pub impl Foo for Bar {
|
|||||||
// Comment 3
|
// Comment 3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inherent]
|
||||||
|
impl Visible for Bar {
|
||||||
|
pub const C: i32;
|
||||||
|
pub type T;
|
||||||
|
fn f();
|
||||||
|
pub fn g() {}
|
||||||
|
}
|
||||||
|
|
||||||
pub unsafe impl<'a, 'b, X, Y: Foo<Bar>> !Foo<'a, X> for Bar<'b, Y>
|
pub unsafe impl<'a, 'b, X, Y: Foo<Bar>> !Foo<'a, X> for Bar<'b, Y>
|
||||||
where
|
where
|
||||||
X: Foo<'a, Z>,
|
X: Foo<'a, Z>,
|
||||||
|
@ -211,3 +211,10 @@ where
|
|||||||
+ DDDDDDDD
|
+ DDDDDDDD
|
||||||
+ DDDDDDDDD
|
+ DDDDDDDDD
|
||||||
+ EEEEEEE;
|
+ EEEEEEE;
|
||||||
|
|
||||||
|
trait Visible {
|
||||||
|
const C: i32;
|
||||||
|
pub type T;
|
||||||
|
fn f();
|
||||||
|
fn g() {}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user