Skip to content

Commit

Permalink
Test an assoc. type in struct member def inside fn
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Oct 13, 2019
1 parent 1721c96 commit 429fc9d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/ui/save-analysis/issue-64659.rs
@@ -0,0 +1,10 @@
// check-pass
// compile-flags: -Zsave-analysis

trait Trait { type Assoc; }

fn main() {
struct Data<T: Trait> {
x: T::Assoc,
}
}

0 comments on commit 429fc9d

Please sign in to comment.