2018-09-30 07:27:26 -05:00
|
|
|
// compile-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(unused_variables)]
|
2015-05-05 08:14:33 -05: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() {}
|