diff options
Diffstat (limited to 'src/test/ui/editions/epoch-gate-feature.rs')
-rw-r--r-- | src/test/ui/editions/epoch-gate-feature.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/editions/epoch-gate-feature.rs b/src/test/ui/editions/epoch-gate-feature.rs new file mode 100644 index 000000000..5f7feb534 --- /dev/null +++ b/src/test/ui/editions/epoch-gate-feature.rs @@ -0,0 +1,15 @@ +// 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() {} |