rust/src/test/ui/impl-trait/universal-issue-48703.rs

10 lines
175 B
Rust
Raw Normal View History

2018-03-03 16:32:47 -06:00
#![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
}