mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
16 lines
312 B
Rust
16 lines
312 B
Rust
// run-pass
|
|
|
|
#![allow(dead_code)]
|
|
#![allow(unused_variables)]
|
|
// Checks if the correct registers are being used to pass arguments
|
|
// when the sysv64 ABI is specified.
|
|
|
|
#![feature(rust_2018_preview)]
|
|
|
|
pub trait Foo {}
|
|
|
|
// should compile without the dyn trait feature flag
|
|
fn foo(x: &dyn Foo) {}
|
|
|
|
pub fn main() {}
|