]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-20186.rs
Rollup merge of #107152 - GuillaumeGomez:migrate-to-css-var, r=notriddle
[rust.git] / tests / ui / issues / issue-20186.rs
1 // check-pass
2 #![allow(dead_code)]
3 #![allow(unused_variables)]
4 struct Foo;
5
6 impl Foo {
7     fn putc(&self, b: u8) { }
8
9     fn puts(&self, s: &str) {
10         for byte in s.bytes() {
11             self.putc(byte)
12         }
13     }
14 }
15
16 fn main() {}