]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-11869.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-11869.rs
1 // check-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 struct A {
6     a: String
7 }
8
9 fn borrow<'a>(binding: &'a A) -> &'a str {
10     match &*binding.a {
11         "in" => "in_",
12         "ref" => "ref_",
13         ident => ident
14     }
15 }
16
17 fn main() {}