diff options
| author | bors <bors@rust-lang.org> | 2018-08-20 15:47:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2018-08-20 15:47:39 +0000 |
| commit | 1558ae7cfd5e1190d3388dcc6f0f734589e4e478 (patch) | |
| tree | e5052cf7aa779cc0cd67d31c8723a0fd88ce5ff1 /src/test/ui/methods/method-call-lifetime-args-fail.rs | |
| parent | bf1e461173e3936e4014cc951dfbdd7d9ec9190b (diff) | |
| parent | ee9bd0fd99ef5049f53b5d8233369187637cb71c (diff) | |
Auto merge of #51880 - varkor:generics-hir-generalisation-followup, r=eddyb
The Great Generics Generalisation: HIR Followup Addresses the final comments in #48149. r? @eddyb, but there are a few things I have yet to clean up. Making the PR now to more easily see when things break. cc @yodaldevoid
Diffstat (limited to 'src/test/ui/methods/method-call-lifetime-args-fail.rs')
| -rw-r--r-- | src/test/ui/methods/method-call-lifetime-args-fail.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/methods/method-call-lifetime-args-fail.rs b/src/test/ui/methods/method-call-lifetime-args-fail.rs index f0a87c74703..980ada9020c 100644 --- a/src/test/ui/methods/method-call-lifetime-args-fail.rs +++ b/src/test/ui/methods/method-call-lifetime-args-fail.rs @@ -24,9 +24,9 @@ impl S { fn method_call() { S.early(); // OK S.early::<'static>(); - //~^ ERROR expected 2 lifetime parameters, found 1 lifetime parameter + //~^ ERROR wrong number of lifetime arguments: expected 2, found 1 S.early::<'static, 'static, 'static>(); - //~^ ERROR expected at most 2 lifetime parameters, found 3 lifetime parameters + //~^ ERROR wrong number of lifetime arguments: expected 2, found 3 let _: &u8 = S.life_and_type::<'static>(); S.life_and_type::<u8>(); S.life_and_type::<'static, u8>(); @@ -71,9 +71,9 @@ fn ufcs() { S::early(S); // OK S::early::<'static>(S); - //~^ ERROR expected 2 lifetime parameters, found 1 lifetime parameter + //~^ ERROR wrong number of lifetime arguments: expected 2, found 1 S::early::<'static, 'static, 'static>(S); - //~^ ERROR expected at most 2 lifetime parameters, found 3 lifetime parameters + //~^ ERROR wrong number of lifetime arguments: expected 2, found 3 let _: &u8 = S::life_and_type::<'static>(S); S::life_and_type::<u8>(S); S::life_and_type::<'static, u8>(S); |
