diff options
Diffstat (limited to 'src/test/ui/error-codes/e0119/so-37347311.rs')
-rw-r--r-- | src/test/ui/error-codes/e0119/so-37347311.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/error-codes/e0119/so-37347311.rs b/src/test/ui/error-codes/e0119/so-37347311.rs deleted file mode 100644 index d5f624bc4..000000000 --- a/src/test/ui/error-codes/e0119/so-37347311.rs +++ /dev/null @@ -1,17 +0,0 @@ -// Ref: https://stackoverflow.com/q/37347311 - -trait Storage { - type Error; -} - -enum MyError<S: Storage> { - StorageProblem(S::Error), -} - -impl<S: Storage> From<S::Error> for MyError<S> { //~ ERROR conflicting implementations - fn from(error: S::Error) -> MyError<S> { - MyError::StorageProblem(error) - } -} - -fn main() {} |