diff options
| author | Alexander Regueiro <alexreg@me.com> | 2019-05-02 18:03:29 +0100 |
|---|---|---|
| committer | Alexander Regueiro <alexreg@me.com> | 2019-05-20 16:12:49 +0100 |
| commit | 783b713b5d90747dec1aabdbc8bfc348593a00c5 (patch) | |
| tree | f20304a0148bf8d31930c37dd8b44d8e63c3cf31 /src/test/ui/error-codes | |
| parent | 20096628c6ce13654e79970b8c56baf1efcbff8e (diff) | |
Addressed more points raised in review.
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0225.stderr | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/test/ui/error-codes/E0225.stderr b/src/test/ui/error-codes/E0225.stderr index 183cf0aad64..c7a66c327f1 100644 --- a/src/test/ui/error-codes/E0225.stderr +++ b/src/test/ui/error-codes/E0225.stderr @@ -1,21 +1,27 @@ error[E0225]: only auto traits can be used as additional traits in a trait object - --> $DIR/E0225.rs:6:32 + --> $DIR/E0225.rs:6:36 | -LL | let _: Box<std::io::Read + std::io::Write>; - | ------------- ^^^^^^^^^^^^^^ additional non-auto trait - | | - | first non-auto trait +LL | let _: Box<dyn std::io::Read + std::io::Write>; + | ------------- ^^^^^^^^^^^^^^ + | | | + | | additional non-auto trait + | | trait alias used in trait object type (additional use) + | first non-auto trait + | trait alias used in trait object type (first use) error[E0225]: only auto traits can be used as additional traits in a trait object - --> $DIR/E0225.rs:8:16 + --> $DIR/E0225.rs:8:20 | LL | trait Foo = std::io::Read + std::io::Write; | ------------- -------------- additional non-auto trait | | | first non-auto trait ... -LL | let _: Box<Foo>; - | ^^^ +LL | let _: Box<dyn Foo>; + | ^^^ + | | + | trait alias used in trait object type (additional use) + | trait alias used in trait object type (first use) error: aborting due to 2 previous errors |
