]> git.lizzy.rs Git - rust.git/blob - src/test/ui/epoch-gate-feature.rs
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[rust.git] / src / test / ui / epoch-gate-feature.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 #![allow(unused_variables)]
5 // Checks if the correct registers are being used to pass arguments
6 // when the sysv64 ABI is specified.
7
8 #![feature(rust_2018_preview)]
9
10 pub trait Foo {}
11
12 // should compile without the dyn trait feature flag
13 fn foo(x: &dyn Foo) {}
14
15 pub fn main() {}