Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
2fcea9fb68c8e04f10e5cb15bbfb486de9800afa
rust/tests/ui/traits/bound/on-structs-and-enums-in-fns.rs

21 lines
224 B
Rust
Raw Normal View History

Fallout in tests -- break this test into three tests, since we later saw staging differences in terms of when errors were reported
2015-08-07 13:32:14 -04:00
trait Trait {}
struct Foo<T:Trait> {
x: T,
}
enum Bar<T:Trait> {
ABar(isize),
BBar(T),
CBar(usize),
}
fn explode(x: Foo<u32>) {}
suggest adding a where-clause when that can help suggest adding a where-clause when there is an unmet trait-bound that can be satisfied if some type can implement it.
2016-03-29 20:12:31 +03:00
//~^ ERROR E0277
Fallout in tests -- break this test into three tests, since we later saw staging differences in terms of when errors were reported
2015-08-07 13:32:14 -04:00
fn kaboom(y: Bar<f32>) {}
suggest adding a where-clause when that can help suggest adding a where-clause when there is an unmet trait-bound that can be satisfied if some type can implement it.
2016-03-29 20:12:31 +03:00
//~^ ERROR E0277
Fallout in tests -- break this test into three tests, since we later saw staging differences in terms of when errors were reported
2015-08-07 13:32:14 -04:00
fn main() {
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 6590ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API