diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-12-20 11:16:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-20 11:16:20 -0800 |
| commit | 2fb2d307e08d9f62a4cc9fab0ddab06f41834797 (patch) | |
| tree | 16d9a034a7213946610a374ba816e7eb144db24b /src/test/incremental/thinlto | |
| parent | 65e9691cefdf48e09dcd6cce5bbd521044919598 (diff) | |
| parent | 5c130411e907b018aef90aabe766d04e989abe9e (diff) | |
| download | rust-2fb2d307e08d9f62a4cc9fab0ddab06f41834797.tar.gz rust-2fb2d307e08d9f62a4cc9fab0ddab06f41834797.zip | |
Rollup merge of #38150 - estebank:fix-23286, r=nikomatsakis
Point out the known type when field doesn't satisfy bound
For file
```rust
use std::path::Path;
fn f(p: Path) { }
```
provide the following error
```nocode
error[E0277]: the trait bound `[u8]: std::marker::Sized` is not satisfied in `std::path::Path`
--> file.rs:3:6
|
3 | fn f(p: Path) { }
| ^ within `std::path::Path`, the trait `std::marker::Sized` is not implemented for `[u8]`
|
= note: `[u8]` does not have a constant size known at compile-time
= note: required because it appears within the type `std::path::Path`
= note: all local variables must have a statically known size
```
Fix #23286.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
