Skip to content

Commit 1ee4a9c

Browse files
committed
add cyclic test
1 parent 07e6d0e commit 1ee4a9c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#![allow(incomplete_features)]
2+
#![feature(field_projections)]
3+
4+
use std::field::{Field, field_of};
5+
use std::marker::PhantomData;
6+
7+
struct Work<F: Field> {
8+
_phantom: PhantomData<F>,
9+
}
10+
11+
struct MyMultiWork {
12+
a: Work<field_of!(Self, a)>,
13+
b: Work<field_of!(Self, b)>,
14+
}
15+
16+
fn main() {}

0 commit comments

Comments
 (0)