rust/src/test/ui/issues/issue-11592.rs
2019-07-03 06:30:28 +09:00

12 lines
238 B
Rust

// build-pass (FIXME(62277): could be check-pass?)
//! Ensure the private trait Bar isn't complained about.
#![deny(missing_docs)]
mod foo {
trait Bar { fn bar(&self) { } }
impl Bar for i8 { fn bar(&self) { } }
}
fn main() { }