Closed as not planned
Description
#![feature(conservative_impl_trait, universal_impl_trait)]
use std::ops::Sub;
trait Trait: Sub + Copy {}
impl Trait for i32{}
fn test0(foo: impl Trait) -> <impl Trait as std::ops::Sub>::Output {
foo - foo
}
fn test1<T: Sub + Copy>(foo: T) -> T::Output {
foo - foo
}
fn main() {
let foo = test0(1);
let bar = test1(1);
println!("{:?}", bar);
}
Only the bar
can be debug.