diff options
| author | Jonathan Turner <jonathandturner@users.noreply.github.com> | 2016-08-27 12:43:31 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-08-27 12:43:31 -0700 |
| commit | d00a89a9ff66447f769288a2e05132e1fd2b331a (patch) | |
| tree | e1d9dd3c908e1121806b25945f8ab1055a9ffb87 /src/test | |
| parent | 3bab26e6f3fabdd9f5c3b855047fdad2179f4334 (diff) | |
| parent | 9c07ed21282fa0710580d589c6ba468ae12455df (diff) | |
| download | rust-d00a89a9ff66447f769288a2e05132e1fd2b331a.tar.gz rust-d00a89a9ff66447f769288a2e05132e1fd2b331a.zip | |
Rollup merge of #36044 - mikhail-m1:master, r=jonathandturner
update error E0450 to new format Fixes #35925 as part of #35233. I've solve the bonus, and I wonder if any simpler way to do this. But may be possible simplify if let expressions? r? @jonathandturner
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/compile-fail/E0450.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/compile-fail/E0450.rs b/src/test/compile-fail/E0450.rs index 3d76cb93773..200b58a3293 100644 --- a/src/test/compile-fail/E0450.rs +++ b/src/test/compile-fail/E0450.rs @@ -9,9 +9,13 @@ // except according to those terms. mod Bar { - pub struct Foo(isize); + pub struct Foo( bool, pub i32, f32, bool); + //~^ NOTE private field declared here + //~| NOTE private field declared here + //~| NOTE private field declared here } fn main() { - let f = Bar::Foo(0); //~ ERROR E0450 + let f = Bar::Foo(false,1,0.1, true); //~ ERROR E0450 + //~^ NOTE cannot construct with a private field } |
