rust/tests/ui/early-ret-binop-add.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
199 B
Rust
Raw Normal View History

// run-pass
#![allow(dead_code)]
#![allow(unreachable_code)]
// pretty-expanded FIXME #23616
2015-04-18 05:12:20 +00:00
use std::ops::Add;
2015-04-18 05:12:20 +00:00
fn wsucc<T:Add<Output=T> + Copy>(n: T) -> T { n + { return n } }
pub fn main() { }