mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 09:32:15 +00:00
16 lines
247 B
Rust
16 lines
247 B
Rust
//! Regression test for <https://github.com/rust-lang/rust/issues/4875>.
|
|
//! Test struct patterns as fn arguments don't ICE.
|
|
//@ run-pass
|
|
#![allow(dead_code)]
|
|
|
|
|
|
pub struct Foo<T> {
|
|
data: T,
|
|
}
|
|
|
|
fn foo<T>(Foo{..}: Foo<T>) {
|
|
}
|
|
|
|
pub fn main() {
|
|
}
|