Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
634244e
Update RELEASES to clarify attribute macro values.
ehuss Aug 15, 2021
79e402e
Allow the iOS toolchain to be built on Linux
kit-981 Aug 16, 2021
52a9883
Update release note for 1.55.0.
nebkor Aug 19, 2021
2644a15
Test that type alias impl trait happens in a submodule
spastorino Aug 19, 2021
700b64e
CI: Verify commits in beta & stable are in upstream branches.
Jul 29, 2021
30f7b89
Mailmap entry for myself
steffahn Aug 20, 2021
adc8cd3
Add cherry-pick.sh convenience script.
Aug 19, 2021
f19ba35
Add support for including non-backport commits.
Aug 20, 2021
49a31a2
We meant to use a trait instead of lifetime here
spastorino Aug 20, 2021
593fd7c
test TAIT in different positions
spastorino Aug 20, 2021
cfcc851
Add TAIT struct test
spastorino Aug 20, 2021
eb16ae7
Use of impl trait in an impl as the valoe for an associated type in a…
spastorino Aug 20, 2021
c6c2f11
Test tait use in a fn type
spastorino Aug 20, 2021
dcfff23
Test use of impl Trait in an impl as the value for an associated type…
spastorino Aug 20, 2021
29dffe5
Test that incomplete inference for TAITs fail
spastorino Aug 21, 2021
8660e3d
Rollup merge of #87604 - yaymukund:verify-backported-commits, r=Mark-…
jackh726 Aug 22, 2021
9e8b143
Rollup merge of #88057 - ehuss:releases-doc-macros, r=Mark-Simulacrum
jackh726 Aug 22, 2021
5ffff5c
Rollup merge of #88072 - kit-981:feature/build-ios-toolchain-on-linux…
jackh726 Aug 22, 2021
908b2ea
Rollup merge of #88170 - nebkor:release-note-1.55, r=Mark-Simulacrum
jackh726 Aug 22, 2021
0689152
Rollup merge of #88172 - spastorino:tait-defining-use-submodule-test,…
jackh726 Aug 22, 2021
1a48b56
Rollup merge of #88179 - steffahn:mailmap, r=Mark-Simulacrum
jackh726 Aug 22, 2021
5be51f2
Rollup merge of #88182 - spastorino:use-trait-in-tait-tests, r=oli-obk
jackh726 Aug 22, 2021
ae58c51
Rollup merge of #88183 - spastorino:add-tait-in-different-tuple-posit…
jackh726 Aug 22, 2021
73d9758
Rollup merge of #88189 - spastorino:add-tait-struct-test, r=oli-obk
jackh726 Aug 22, 2021
d6492b1
Rollup merge of #88192 - spastorino:add-tait-test-for-assoc-dyn, r=ol…
jackh726 Aug 22, 2021
66b04c6
Rollup merge of #88194 - spastorino:test-tait-assoc-impl-trait, r=oli…
jackh726 Aug 22, 2021
1d0d7c3
Rollup merge of #88197 - spastorino:tait-test-fn-type, r=oli-obk
jackh726 Aug 22, 2021
b9b53c8
Rollup merge of #88201 - spastorino:tait-incomplete-inference-test, r…
jackh726 Aug 22, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions src/test/ui/type-alias-impl-trait/type-alias-impl-trait-tuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,24 @@ pub trait MyTrait {}

impl MyTrait for bool {}

type Foo = impl MyTrait;

struct Blah {
my_foo: Foo,
my_u8: u8
my_u8: u8,
}

impl Blah {
fn new() -> Blah {
Blah {
my_foo: make_foo(),
my_u8: 12
}
Blah { my_foo: make_foo(), my_u8: 12 }
}
fn into_inner(self) -> (Foo, u8) {
(self.my_foo, self.my_u8)
fn into_inner(self) -> (Foo, u8, Foo) {
(self.my_foo, self.my_u8, make_foo())
}
}

fn make_foo() -> Foo {
true
}

type Foo = impl MyTrait;

fn main() {}