mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
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
|
||||
}
|
||||
|
||||
#[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> {
|
||||
fn foo() { "hi" }
|
||||
}
|
||||
|
@ -174,3 +174,10 @@ Send
|
||||
+ DDDDDDDD
|
||||
+ DDDDDDDDD
|
||||
+ 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
|
||||
}
|
||||
|
||||
#[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>
|
||||
where
|
||||
X: Foo<'a, Z>,
|
||||
|
@ -211,3 +211,10 @@ where
|
||||
+ DDDDDDDD
|
||||
+ DDDDDDDDD
|
||||
+ EEEEEEE;
|
||||
|
||||
trait Visible {
|
||||
const C: i32;
|
||||
pub type T;
|
||||
fn f();
|
||||
fn g() {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user