We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0eb782b commit 4e0af7cCopy full SHA for 4e0af7c
example/issue-72793.rs
@@ -2,20 +2,23 @@
2
3
#![feature(type_alias_impl_trait)]
4
5
-trait T {
6
- type Item;
7
-}
+mod helper {
+ pub trait T {
+ type Item;
8
+ }
9
-type Alias<'a> = impl T<Item = &'a ()>;
10
+ pub type Alias<'a> = impl T<Item = &'a ()>;
11
-struct S;
12
-impl<'a> T for &'a S {
13
- type Item = &'a ();
14
+ struct S;
+ impl<'a> T for &'a S {
+ type Item = &'a ();
15
16
-fn filter_positive<'a>() -> Alias<'a> {
17
- &S
+ pub fn filter_positive<'a>() -> Alias<'a> {
18
+ &S
19
20
}
21
+use helper::*;
22
23
fn with_positive(fun: impl Fn(Alias<'_>)) {
24
fun(filter_positive());
0 commit comments