summaryrefslogtreecommitdiffstats
path: root/src/test/ui/early-ret-binop-add.rs
blob: 2b5df52a51c36181abdf6b70f0537544f7220f37 (plain)
1
2
3
4
5
6
7
8
9
10
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() { }