rust/tests/ui/rust-2018/dyn-trait-compatibility.rs

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

9 lines
216 B
Rust
Raw Normal View History

//@ edition:2018
type A0 = dyn;
2018-12-01 18:05:19 -06:00
type A1 = dyn::dyn; //~ERROR expected identifier, found keyword `dyn`
type A2 = dyn<dyn, dyn>; //~ERROR expected identifier, found `<`
type A3 = dyn<<dyn as dyn>::dyn>;
fn main() {}