]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-35600.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.git] / src / test / ui / issues / issue-35600.rs
1 // run-pass
2 #![allow(non_camel_case_types)]
3 #![allow(unused_variables)]
4
5 trait Foo {
6     type bar;
7     fn bar();
8 }
9
10 impl Foo for () {
11     type bar = ();
12     fn bar() {}
13 }
14
15 fn main() {
16     let x: <() as Foo>::bar = ();
17     <()>::bar();
18 }