]> git.lizzy.rs Git - rust.git/blob - src/test/ui/early-ret-binop-add.rs
Merge commit '4a053f206fd6799a25823c307f7d7f9d897be118' into sync-rustfmt-subtree
[rust.git] / src / test / ui / early-ret-binop-add.rs
1 // run-pass
2
3 #![allow(dead_code)]
4 #![allow(unreachable_code)]
5 // pretty-expanded FIXME #23616
6
7 use std::ops::Add;
8
9 fn wsucc<T:Add<Output=T> + Copy>(n: T) -> T { n + { return n } }
10
11 pub fn main() { }