about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-12-20 11:16:20 -0800
committerGitHub <noreply@github.com>2016-12-20 11:16:20 -0800
commit2fb2d307e08d9f62a4cc9fab0ddab06f41834797 (patch)
tree16d9a034a7213946610a374ba816e7eb144db24b /src/test/incremental/thinlto
parent65e9691cefdf48e09dcd6cce5bbd521044919598 (diff)
parent5c130411e907b018aef90aabe766d04e989abe9e (diff)
downloadrust-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