2019-11-04 00:00:00 +00:00
|
|
|
// check-pass
|
2018-09-25 21:51:35 +00:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
2015-05-05 13:14:33 +00:00
|
|
|
struct Foo;
|
|
|
|
|
|
|
|
impl Foo {
|
|
|
|
fn putc(&self, b: u8) { }
|
|
|
|
|
|
|
|
fn puts(&self, s: &str) {
|
|
|
|
for byte in s.bytes() {
|
|
|
|
self.putc(byte)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|