Sign in
rust
/
rust
/
refs/heads/perf-tmp
/
.
/
tests
/
ui
/
resolve
/
struct-function-same-name-2550.rs
blob: c96f58374c6dc62540aba4b27f132186d33b5434 [
file
] [
log
] [
blame
] [
edit
]
//! Regression test for https://github.com/rust-lang/rust/issues/2550
//@ run-pass
#![
allow
(
dead_code
)]
#![
allow
(
non_snake_case
)]
struct
C
{
x
:
usize
,
}
fn
C
(
x
:
usize
)
->
C
{
C
{
x
}
}
fn
f
<
T
>(
_x
:
T
)
{}
pub
fn
main
()
{
f
(
C
(
1
));
}