]> git.lizzy.rs Git - rust.git/commit
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)
commitd41f21f11a249ad78990eb9a1ec899ec123c7136
tree9a4c2a6e83f0d4bb63dcc502ff47bc69008287e2
parent727eabd68143e968d8826ee29b8ea7792d29fa96
parent264d0a2e5c7291dc2dd2701b8e990c6fb58b54ed
Auto merge of #53460 - JoshBrudnak:master, r=estebank

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.