diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-11-04 16:49:30 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-11-05 10:50:23 -0700 |
| commit | 7c7bc2c296fc0d2bfd94d6c37e0ac74b02a5c8d4 (patch) | |
| tree | f664f8107be82b6d20ea97da3b89413d72a59f43 /src/test | |
| parent | b4aee37224f60c60f0f49b4e613ee6081fb52355 (diff) | |
| parent | d5f72d21afffcda4cc71945f12477136774aa604 (diff) | |
Rollup merge of #37564 - Mark-Simulacrum:sized-ice, r=eddyb
Fix ICE when querying DefId on Def::Err. Also moves computations into check that `kind_id` is `Ok(_)`, which is in theory an optimization, though I expect it's minor. Fixes #37534. r? @eddyb.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/issue-37534.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-37534.rs b/src/test/compile-fail/issue-37534.rs new file mode 100644 index 00000000000..eb676601e89 --- /dev/null +++ b/src/test/compile-fail/issue-37534.rs @@ -0,0 +1,16 @@ +// Copyright 2016 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +struct Foo<T: ?Hash> { } +//~^ ERROR trait `Hash` is not in scope [E0405] +//~^^ ERROR parameter `T` is never used [E0392] +//~^^^ WARN default bound relaxed for a type parameter, but this does nothing + +fn main() { } |
