rust/tests/ui/error-codes/E0207.rs

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

11 lines
134 B
Rust
Raw Normal View History

2016-08-03 23:51:52 +00:00
struct Foo;
impl<T: Default> Foo { //~ ERROR E0207
fn get(&self) -> T {
<T as Default>::default()
}
}
fn main() {
}