]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-20186.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / 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() {}