]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28828.rs
Auto merge of #79113 - andjo403:raw_vec_ptr, r=m-ou-se
[rust.git] / src / test / ui / issues / issue-28828.rs
1 // run-pass
2 pub trait Foo {
3     type Out;
4 }
5
6 impl Foo for () {
7     type Out = bool;
8 }
9
10 fn main() {
11     type Bool = <() as Foo>::Out;
12
13     let x: Bool = true;
14     assert!(x);
15
16     let y: Option<Bool> = None;
17     assert_eq!(y, None);
18 }