Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upfieldless FRU can be used on non-struct-like structs #27831
Comments
arielb1
added
the
A-amusing
label
Aug 14, 2015
alexcrichton
added
final-comment-period
I-nominated
and removed
final-comment-period
labels
Aug 14, 2015
This comment has been minimized.
This comment has been minimized.
|
Nominating |
This comment has been minimized.
This comment has been minimized.
|
This issue also occurs in patterns, but there's also the additional issue of struct Foo<T> { x: T }
type Ty = Foo<u32>;
fn main() {
match (Foo { x: () }) { Ty::<()> { x } => {} }
} |
arielb1
referenced this issue
Aug 15, 2015
Merged
be more robust to bogus items in struct patterns/constructors #27833
arielb1
added a commit
to arielb1/rust
that referenced
this issue
Aug 16, 2015
arielb1
added a commit
to arielb1/rust
that referenced
this issue
Aug 16, 2015
bors
closed this
in
91be125
Aug 17, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
arielb1 commentedAug 14, 2015
STR
Result
This compiles and runs.
Expected
This shouldn't compile.