Closed
Description
This code compiles, it should not:
mod x {
pub struct Foo { x: u32 }
struct Bar { x: u32 }
impl Foo {
pub fn foo(&self, x: Self, y: Bar) { }
}
}
fn main() { }
cc @nrc
This code compiles, it should not:
mod x {
pub struct Foo { x: u32 }
struct Bar { x: u32 }
impl Foo {
pub fn foo(&self, x: Self, y: Bar) { }
}
}
fn main() { }
cc @nrc