diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-2550.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-2550.rs b/src/test/ui/issues/issue-2550.rs new file mode 100644 index 000000000..04ec66b80 --- /dev/null +++ b/src/test/ui/issues/issue-2550.rs @@ -0,0 +1,22 @@ +// run-pass +#![allow(dead_code)] +#![allow(non_snake_case)] + +// pretty-expanded FIXME #23616 + +struct C { + x: usize, +} + +fn C(x: usize) -> C { + C { + x: x + } +} + +fn f<T>(_x: T) { +} + +pub fn main() { + f(C(1)); +} |