summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-20186.rs
blob: 54d68f100521d1395cf1ff48946d7cdad4066a60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// check-pass
#![allow(dead_code)]
#![allow(unused_variables)]
struct Foo;

impl Foo {
    fn putc(&self, b: u8) { }

    fn puts(&self, s: &str) {
        for byte in s.bytes() {
            self.putc(byte)
        }
    }
}

fn main() {}