]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17905.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-17905.rs
1 // run-pass
2
3 #[derive(Debug)]
4 #[allow(unused_tuple_struct_fields)]
5 struct Pair<T, V> (T, V);
6
7 impl Pair<
8     &str,
9     isize
10 > {
11     fn say(&self) {
12         println!("{:?}", self);
13     }
14 }
15
16 fn main() {
17     let result = &Pair("shane", 1);
18     result.say();
19 }