diff options
| author | Alexander Regueiro <alexreg@me.com> | 2019-03-30 22:06:09 +0000 |
|---|---|---|
| committer | Alexander Regueiro <alexreg@me.com> | 2019-05-20 16:12:49 +0100 |
| commit | fd7c253accd46ea8340feb79ecaf18d99f518bb8 (patch) | |
| tree | feea292bca793ad38ae2204f0a8d7c692d613b34 /src/test/ui/error-codes | |
| parent | aea954b74de16888f09ff003ebfdf97f9f7ef001 (diff) | |
| download | rust-fd7c253accd46ea8340feb79ecaf18d99f518bb8.tar.gz rust-fd7c253accd46ea8340feb79ecaf18d99f518bb8.zip | |
Update tests.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0225.stderr | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/test/ui/error-codes/E0225.stderr b/src/test/ui/error-codes/E0225.stderr index c8d8f07db8a..183cf0aad64 100644 --- a/src/test/ui/error-codes/E0225.stderr +++ b/src/test/ui/error-codes/E0225.stderr @@ -2,16 +2,20 @@ error[E0225]: only auto traits can be used as additional traits in a trait objec --> $DIR/E0225.rs:6:32 | LL | let _: Box<std::io::Read + std::io::Write>; - | ^^^^^^^^^^^^^^ non-auto additional trait + | ------------- ^^^^^^^^^^^^^^ additional non-auto trait + | | + | first non-auto trait error[E0225]: only auto traits can be used as additional traits in a trait object --> $DIR/E0225.rs:8:16 | LL | trait Foo = std::io::Read + std::io::Write; - | -------------- non-auto additional trait + | ------------- -------------- additional non-auto trait + | | + | first non-auto trait ... LL | let _: Box<Foo>; - | ^^^ expanded from this alias + | ^^^ error: aborting due to 2 previous errors |
