diff options
Diffstat (limited to 'tests/ui/early-ret-binop-add.rs')
-rw-r--r-- | tests/ui/early-ret-binop-add.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/early-ret-binop-add.rs b/tests/ui/early-ret-binop-add.rs new file mode 100644 index 000000000..2b5df52a5 --- /dev/null +++ b/tests/ui/early-ret-binop-add.rs @@ -0,0 +1,11 @@ +// run-pass + +#![allow(dead_code)] +#![allow(unreachable_code)] +// pretty-expanded FIXME #23616 + +use std::ops::Add; + +fn wsucc<T:Add<Output=T> + Copy>(n: T) -> T { n + { return n } } + +pub fn main() { } |