]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #53460 - JoshBrudnak:master, r=estebank
authorbors <bors@rust-lang.org>
Fri, 24 Aug 2018 19:21:27 +0000 (19:21 +0000)
committerbors <bors@rust-lang.org>
Fri, 24 Aug 2018 19:21:27 +0000 (19:21 +0000)
Fix compile panic on non existent type return

Reverted the change https://github.com/rust-lang/rust/commit/28a76a90009d605349babcd2755962ab93913327#diff-4ed25c00aceb84666fca639cf8101c7cL1069 which was panicking when returning a type that cannot be found in the current scope and added testing for the compile error.

For example:
```rust
fn addition() -> Wrapper<impl A> {}
```
Where Wrapper is undefined in the scope.


Trivial merge