From 8e002015416954fa5e9444c9d81ec7f4b291562f Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 25 Feb 2018 10:52:11 +0800 Subject: HIR Typecheck - Fix case where inferrence stalls when there's a `T = ::Assoc bound` and unsizing, should fix #62 --- samples/test/issue-mrustc-62.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 samples/test/issue-mrustc-62.rs (limited to 'samples/test') diff --git a/samples/test/issue-mrustc-62.rs b/samples/test/issue-mrustc-62.rs new file mode 100644 index 00000000..c319ad83 --- /dev/null +++ b/samples/test/issue-mrustc-62.rs @@ -0,0 +1,17 @@ + +struct Struct; + +trait Trait { + type Assoc; +} + +impl Trait for Struct { + type Assoc = Struct; +} + +fn f(_: &S) where S: Trait {} + +fn main() { + f(&Struct); +} + -- cgit v1.2.3