mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
11 lines
209 B
Rust
11 lines
209 B
Rust
//@ 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();
|
|
}
|