rust/tests/rustdoc-ui/error-in-impl-trait/generic-argument.rs

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

8 lines
119 B
Rust
Raw Normal View History

//@ check-pass
2020-07-10 16:50:03 -05:00
trait ValidTrait {}
/// This has docs
pub fn f() -> impl ValidTrait {
Vec::<DoesNotExist>::new()
}