]> git.proxmox.com Git - rustc.git/blame - src/test/ui/nll/user-annotations/issue-54570-bootstrapping.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / nll / user-annotations / issue-54570-bootstrapping.rs
CommitLineData
60c5eb7d 1// check-pass
0bf4aa26
XL
2
3// This test is reduced from a scenario pnkfelix encountered while
4// bootstrapping the compiler.
5
6#[derive(Copy, Clone)]
7pub struct Spanned<T> {
8 pub node: T,
9 pub span: Span,
10}
11
12pub type Variant = Spanned<VariantKind>;
13// #[derive(Clone)] pub struct Variant { pub node: VariantKind, pub span: Span, }
14
15#[derive(Clone)]
16pub struct VariantKind { }
17
18#[derive(Copy, Clone)]
19pub struct Span;
20
21pub fn variant_to_span(variant: Variant) {
22 match variant {
23 Variant {
24 span: _span,
25 ..
26 } => { }
27 };
28}
29
30fn main() { }