]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-25901.rs
Rollup merge of #104059 - Rejyr:rustc_middle-lint-typo, r=petrochenkov
[rust.git] / src / test / ui / issues / issue-25901.rs
1 struct A;
2 struct B;
3
4 static S: &'static B = &A;
5 //~^ ERROR the trait bound
6
7 use std::ops::Deref;
8
9 impl Deref for A {
10     type Target = B;
11     fn deref(&self)->&B { static B_: B = B; &B_ }
12 }
13
14 fn main(){}