Skip to content

Commit

Permalink
save-analysis: Add a related test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Sep 13, 2019
1 parent b456c82 commit 6117faa
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/test/ui/save-analysis/issue-63663.rs
@@ -0,0 +1,23 @@
// check-pass
// compile-flags: -Zsave-analysis

// Check that this doesn't ICE when processing associated const in formal
// argument and return type of functions defined inside function/method scope.

pub trait Trait {
type Assoc;
}

pub struct A;

pub fn func() {
fn _inner1<U: Trait>(_: U::Assoc) {}
fn _inner2<U: Trait>() -> U::Assoc { unimplemented!() }

impl A {
fn _inner1<U: Trait>(self, _: U::Assoc) {}
fn _inner2<U: Trait>(self) -> U::Assoc { unimplemented!() }
}
}

fn main() {}

0 comments on commit 6117faa

Please sign in to comment.