rust/tests/ui/privacy/issue-57264-2.rs

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

11 lines
209 B
Rust
Raw Permalink Normal View History

2019-11-06 00:00:00 +00:00
//@ check-pass
//@ aux-build:issue-57264-2.rs
extern crate issue_57264_2;
fn infer<T: issue_57264_2::PubTraitWithSingleImplementor>(arg: T) -> T { arg }
fn main() {
infer(None).unwrap().pub_method();
}