]> git.lizzy.rs Git - rust.git/commit
Auto merge of #53588 - tristanburgess:52985_diagnostics_no_concrete_type_behind_exist...
authorbors <bors@rust-lang.org>
Thu, 23 Aug 2018 20:34:12 +0000 (20:34 +0000)
committerbors <bors@rust-lang.org>
Thu, 23 Aug 2018 20:34:12 +0000 (20:34 +0000)
commit5ce5e0860634258205c313879cb81a125aef4fcb
tree9af7f5ece63bb1a41e361adf3072b89c34590637
parent54d82d0880f93e293bc8fd6439ccfa7970d41f02
parent7440125d622356291909efd1027162b4983c6f9f
Auto merge of #53588 - tristanburgess:52985_diagnostics_no_concrete_type_behind_existential_type, r=oli-obk

52985 diagnostics no concrete type behind existential type

@oli-obk FYI. See below for new cycle error generated.

```rust
error[E0391]: cycle detected when processing `Foo`
 --> /dev/staging/existential_type_no_concrete_type_nouse_potential.rs:3:1
  |
3 | existential type Foo: Copy;
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
note: ...which requires processing `bar`...
 --> /dev/staging/existential_type_no_concrete_type_nouse_potential.rs:6:23
  |
6 |   fn bar(x: Foo) -> Foo {
  |  _______________________^
7 | |     x
8 | | }
  | |_^
  = note: ...which again requires processing `Foo`, completing the cycle

error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.
```
src/librustc/traits/query/normalize.rs