Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 0 additions & 1 deletion src/librustc/hir/print.rs
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,6 @@ impl<'a> State<'a> {

self.print_where_clause(&exist.generics.where_clause)?;
self.s.space()?;
self.word_space(":")?;
let mut real_bounds = Vec::with_capacity(exist.bounds.len());
for b in exist.bounds.iter() {
if let GenericBound::Trait(ref ptr, hir::TraitBoundModifier::Maybe) = *b {
Expand Down
11 changes: 11 additions & 0 deletions src/test/ui/issues/issue-60662.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// compile-pass
// compile-flags: -Z unpretty=hir

#![feature(existential_type)]

trait Animal {
}

fn main() {
pub existential type ServeFut: Animal;
}
14 changes: 14 additions & 0 deletions src/test/ui/issues/issue-60662.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// compile-pass
// compile-flags: -Z unpretty=hir

#![feature(existential_type)]
#[prelude_import]
use ::std::prelude::v1::*;
#[macro_use]
extern crate std;

trait Animal { }

fn main() {
pub existential type ServeFut : Animal;
}