rust/tests/ui/unconstrained-ref.rs

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

8 lines
121 B
Rust
Raw Normal View History

struct S<'a, T:'a> {
o: &'a Option<T>
}
fn main() {
S { o: &None }; //~ ERROR type annotations needed [E0282]
}