diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/run-make-fulldeps/issue-46239/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/run-make-fulldeps/issue-46239/main.rs b/src/test/run-make-fulldeps/issue-46239/main.rs new file mode 100644 index 000000000..b7df5cf4d --- /dev/null +++ b/src/test/run-make-fulldeps/issue-46239/main.rs @@ -0,0 +1,8 @@ +fn project<T>(x: &(T,)) -> &T { &x.0 } + +fn dummy() {} + +fn main() { + let f = (dummy as fn(),); + (*project(&f))(); +} |