mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-09 06:16:06 +00:00
22 lines
343 B
Rust
22 lines
343 B
Rust
// Make sure we don't propagate restrictions on trait impl items to items inside them.
|
|
|
|
//@ check-pass
|
|
//@ edition:2018
|
|
|
|
fn main() {}
|
|
|
|
trait X {
|
|
fn foo();
|
|
}
|
|
|
|
impl X for () {
|
|
fn foo() {
|
|
struct S;
|
|
impl S {
|
|
pub const X: u8 = 0;
|
|
pub const fn bar() {}
|
|
async fn qux() {}
|
|
}
|
|
}
|
|
}
|