rust/tests/ui/early-ret-binop-add.rs
2023-01-11 09:32:08 +00:00

12 lines
199 B
Rust

// 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() { }