diff options
| author | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2015-06-29 21:07:09 +0300 |
|---|---|---|
| committer | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2015-06-29 21:27:33 +0300 |
| commit | a1110bc3a33e1fd4e08e7532bb9cd28a0216016e (patch) | |
| tree | 6c24950d448c0db2fba9417c12ddf9ab53bf8d0e /src/test | |
| parent | 40db46c6ba0d59e5ad9aa056a73055d2d3b83d04 (diff) | |
| download | rust-a1110bc3a33e1fd4e08e7532bb9cd28a0216016e.tar.gz rust-a1110bc3a33e1fd4e08e7532bb9cd28a0216016e.zip | |
Fix off-by-one error in default-type-parameter checking
Fixes #18183
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/issue-18183.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-18183.rs b/src/test/compile-fail/issue-18183.rs new file mode 100644 index 00000000000..e6f3a2bdd33 --- /dev/null +++ b/src/test/compile-fail/issue-18183.rs @@ -0,0 +1,13 @@ +// Copyright 2015 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. + +pub struct Foo<Bar=Bar>; //~ ERROR E0128 +pub struct Baz(Foo); +fn main() {} |
