Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 7 pull requests #93933

Merged
merged 19 commits into from
Feb 12, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
b79fc92
fix ICE when parsing lifetime as function argument
compiler-errors Feb 2, 2022
8b13fd4
Add pretty printer test for use trees
dtolnay Feb 8, 2022
d1b9e4a
Pretty print ItemKind::Use in rustfmt style
dtolnay Feb 8, 2022
b64a822
Bless use tree pretty print test
dtolnay Feb 8, 2022
a38ff48
Add some known GAT bugs as tests
jackh726 Feb 8, 2022
3a1ffea
linkchecker: fix panic on directory symlinks
schopin-pro Feb 11, 2022
9322d09
Check that error code explanations are listed in error_codes.rs
GuillaumeGomez Feb 11, 2022
9b17e2d
Add 2 tests
matthiaskrgr Dec 14, 2021
087fb23
Add missing E0192 in the error code listing
GuillaumeGomez Feb 11, 2022
5be9e79
Update expr.rs
compiler-errors Feb 12, 2022
56d43a2
Add missing release notes for #85200
nsunderland1 Feb 12, 2022
ba42215
Fix line number
jackh726 Feb 12, 2022
661be4c
Rollup merge of #91908 - matthiaskrgr:ices, r=jackh726
matthiaskrgr Feb 12, 2022
602898a
Rollup merge of #93595 - compiler-errors:ice-on-lifetime-arg, r=jackh726
matthiaskrgr Feb 12, 2022
36461e0
Rollup merge of #93757 - jackh726:gat-bug-tests, r=nikomatsakis
matthiaskrgr Feb 12, 2022
f30f6de
Rollup merge of #93759 - dtolnay:usetree, r=nagisa
matthiaskrgr Feb 12, 2022
475b45f
Rollup merge of #93897 - schopin-pro:linkchecker-symlink, r=Mark-Simu…
matthiaskrgr Feb 12, 2022
16f490f
Rollup merge of #93898 - GuillaumeGomez:error-code-check, r=Mark-Simu…
matthiaskrgr Feb 12, 2022
0e3ecd2
Rollup merge of #93928 - nsunderland1:master, r=Mark-Simulacrum
matthiaskrgr Feb 12, 2022
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
24 changes: 24 additions & 0 deletions src/test/ui/associated-types/issue-91069.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// check-pass

pub trait Associate {
type Associated;
}

pub struct Wrap<'a> {
pub field: &'a i32,
}

pub trait Create<T> {
fn create() -> Self;
}

pub fn oh_no<'a, T>()
where
Wrap<'a>: Associate,
<Wrap<'a> as Associate>::Associated: Create<T>,
{
<Wrap<'a> as Associate>::Associated::create();
}


pub fn main() {}
22 changes: 22 additions & 0 deletions src/test/ui/generic-associated-types/issue-91139.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// check-pass

#![feature(generic_associated_types)]

trait Foo<T> {
type Type<'a>
where
T: 'a;
}

impl<T> Foo<T> for () {
type Type<'a>
where
T: 'a,
= ();
}

fn foo<T>() {
let _: for<'a> fn(<() as Foo<T>>::Type<'a>, &'a T) = |_, _| ();
}

pub fn main() {}