mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
14 lines
197 B
Rust
14 lines
197 B
Rust
//@ check-pass
|
|
|
|
#[expect(unused)]
|
|
trait UnusedTrait {}
|
|
|
|
struct UsedStruct(u32);
|
|
|
|
impl UnusedTrait for UsedStruct {}
|
|
|
|
fn main() {
|
|
let x = UsedStruct(12);
|
|
println!("Hello World! {}", x.0);
|
|
}
|