rust/src/test/run-pass/epoch-gate-feature.rs

14 lines
299 B
Rust
Raw Normal View History

#![allow(dead_code)]
#![allow(unused_variables)]
2018-03-08 11:30:07 -06:00
// Checks if the correct registers are being used to pass arguments
// when the sysv64 ABI is specified.
2018-03-21 17:49:42 -05:00
#![feature(rust_2018_preview)]
2018-03-08 11:30:07 -06:00
pub trait Foo {}
// should compile without the dyn trait feature flag
fn foo(x: &dyn Foo) {}
pub fn main() {}