Recent-onset type 2 diabetes has been linked to pancreatic cancer in African Americans and Hispanics older than 50, according to a study.