Closed
Description
As spotted in this internals thread:
use std::fmt::Debug;
struct Foo;
fn show<T: Debug = Foo>(t: T) {
println!("{:?}", t)
}
compiles. Lack of early error/warning/lint here might be hiding bugs in API design if the default never actually kicks in inside the library.