From a1110bc3a33e1fd4e08e7532bb9cd28a0216016e Mon Sep 17 00:00:00 2001 From: Ariel Ben-Yehuda Date: Mon, 29 Jun 2015 21:07:09 +0300 Subject: Fix off-by-one error in default-type-parameter checking Fixes #18183 --- src/test/compile-fail/issue-18183.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/test/compile-fail/issue-18183.rs (limited to 'src/test') 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +pub struct Foo; //~ ERROR E0128 +pub struct Baz(Foo); +fn main() {} -- cgit 1.4.1-3-g733a5