rust/src/test/ui/impl-trait/universal-issue-48703.rs
2018-12-25 21:08:33 -07:00

10 lines
175 B
Rust

#![feature(universal_impl_trait)]
use std::fmt::Debug;
fn foo<T>(x: impl Debug) { }
fn main() {
foo::<String>('a'); //~ ERROR cannot provide explicit type parameters
}