rust/tests/ui/editions/epoch-gate-feature.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
312 B
Rust
Raw Normal View History

// run-pass
#![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() {}